function theme_text_format_wrapper

7.x filter.module theme_text_format_wrapper($variables)

Returns HTML for a text format-enabled form element.


$variables: An associative array containing:

  • element: A render element containing #children and #description.

Related topics

2 string references to the theme hook from theme_text_format_wrapper()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

filter_element_info in drupal/modules/filter/filter.module
Implements hook_element_info().
filter_theme in drupal/modules/filter/filter.module
Implements hook_theme().


drupal/modules/filter/filter.module, line 1005
Framework for handling the filtering of content.


function theme_text_format_wrapper($variables) {
  $element = $variables['element'];
  $output = '<div class="text-format-wrapper">';
  $output .= $element['#children'];
  if (!empty($element['#description'])) {
    $output .= '<div class="description">' . $element['#description'] . '</div>';
  $output .= "</div>\n";

  return $output;