function theme_text_format_wrapper
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
-
modules/
filter/ filter.module, line 1007
Code
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.