Form jedi tools
Categories
Component ID
2771753
Component name
Form jedi tools
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Set of common functions to programmatically work with custom form or when you have many things to do in form_alter of some existed form.
Available features:
- Turn element title into placeholder attribute (for cases when you want to show placeholder instead of label)
- Recursively hide titles for all childer of root element
- Prepend prefix to an element (to fix commen error - wiped original prefix, with check if it's empty)
- Append suffix to an element (with check if it's empty)
- Set up access=FALSE for all child elements of tree (with support of allowed elements, handy when you want hide big chunks of existed form)
- Set up arbitrary element attribute to leaf elements of tree element (handy to manipulate with nested elements, i.e. push class to 'value' leaf element of [LANGUAGE_NONE][0]['value'] element)
