theme_text_format_wrapper
- Versions
- 7
theme_text_format_wrapper($variables)
Theme a text format form element.
Parameters
$variables An associative array containing:
- element: An associative array containing the properties of the element. Properties used: #children, #description
Return value
A string representing the form element.
Related topics
Code
includes/form.inc, line 2180
<?php
function theme_text_format_wrapper($variables) {
$element = $variables['element'];
$output = '<div class="text-format-wrapper">' . "\n";
$output .= $element['#children'] . "\n";
if (!empty($element['#description'])) {
$output .= '<div class="description">' . $element['#description'] . "</div>\n";
}
$output .= "</div>\n";
return $output;
}
?>Login or register to post comments 