| Versionen | |
|---|---|
| drupal7 | theme_text_format_wrapper($element) |
Return a themed text format form element.
element An associative array containing the properties of the element. Properties used: children, description
A string representing the form element.
includes/
<?php
function theme_text_format_wrapper($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;
}
?>
Kommentare
Kommentar hinzufügen