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
21 calls to form_group()
File
- includes/
common.inc, line 1070 - Common functions that many Drupal modules will need to reference.
Code
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