1 filter.theme.inc theme_text_format_wrapper($variables)

Returns HTML for a text format-enabled form element.

Parameters

$variables: An associative array containing:

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

Related topics

File

core/modules/filter/filter.theme.inc, line 16
Theme functions for the Filter module.

Code

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

  return $output;
}