form_group
- Versions
- 4.6
form_group($legend, $group, $description = NULL)
Format a group of form items.
Parameters
$legend The label for the form item group.
$group The form items within the group, as an HTML string.
$description Explanatory text to display after the form item group.
Return value
A themed HTML string representing the form item group.
Related topics
Code
includes/common.inc, line 1070
<?php
function form_group($legend, $group, $description = NULL) {
return '<fieldset>' . ($legend ? '<legend>'. check_plain($legend) .'</legend>' : '') . $group . ($description ? '<div class="description">'. $description .'</div>' : '') . "</fieldset>\n";
}
?>Login or register to post comments 