function theme_text_format_wrapper
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
- modules/filter/filter.module, line 1005
- Framework for handling the filtering of content.
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!filter!filter.module/function/theme_text_format_wrapper/7.x