You are here

function jquerymobile_process_text_format in jQuery Mobile module 7.2

Same name and namespace in other branches
  1. 7 jquerymobile.module \jquerymobile_process_text_format()

Implements hook_process_text_format().

1 string reference to 'jquerymobile_process_text_format'
jquerymobile_element_info_alter in ./jquerymobile.module
Implements hook_element_info_alter().

File

./jquerymobile.module, line 300

Code

function jquerymobile_process_text_format($element) {
  global $theme_key;
  if (_jquerymobile_is_mobile_theme($theme_key)) {
    $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;
}