form_group($legend, $group, $description = NULL)
drupal/includes/common.inc, line 1070
Format a group of form items.
$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.
A themed HTML string representing the form item group.
| Name | Description |
|---|---|
| Form generation | Functions to enable output of HTML forms and form elements. |
| Input validation | Functions to validate user input. |
function form_group($legend, $group, $description = NULL) {
return '<fieldset>' . ($legend ? '<legend>'. check_plain($legend) .'</legend>' : '') . $group . ($description ? '<div class="description">'. $description .'</div>' : '') . "</fieldset>\n";
}