function jquerymobile_process_text_format in jQuery Mobile module 7
Same name and namespace in other branches
- 7.2 jquerymobile.module \jquerymobile_process_text_format()
re-work the structure of the text_format type so it can be collapsed also drop the help link to the bottom and remove the title of the format element since it's now in the #prefix
1 string reference to 'jquerymobile_process_text_format'
- jquerymobile_element_info_alter in ./
jquerymobile.module - Implements hook_element_info_alter().
File
- ./
jquerymobile.module, line 145 - Provides the jQuery Mobile library to modules and themes that request it.
Code
function jquerymobile_process_text_format($element) {
$element['format']['#prefix'] = '<div data-role="collapsible" data-collapsed="true"><h3>' . t('Text Format') . '</h3>';
$element['format']['#suffix'] = '</div>';
$element['format']['help']['#weight'] = 100;
// remove element title since it is added above
$element['format']['format']['#title'] = NULL;
return $element;
}