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

▾ 21 functions call form_group()

block_admin_configure in modules/block.module
Menu callback; displays the block configuration form.
comment_configure in modules/comment.module
Menu callback; presents the comment settings page.
comment_nodeapi in modules/comment.module
Implementation of hook_nodeapi().
node_admin_nodes in modules/node.module
Generate the content administration overview.
node_form in modules/node.module
Generate the node editing form.
node_types_configure in modules/node.module
Menu callback; presents each node type configuration page.
poll_form in modules/poll.module
Implementation of hook_form().
search_admin in modules/search.module
Menu callback; displays the search module settings page.
statistics_settings in modules/statistics.module
Implementation of hook_settings().
system_theme_settings in modules/system.module
Menu callback; display theme configuration for entire site and individual themes.
system_view_general in modules/system.module
throttle_settings in modules/throttle.module
Implementation of hook_settings().
upload_admin in modules/upload.module
upload_form in modules/upload.module
user_admin_create in modules/user.module
user_configure_settings in modules/user.module
user_register in modules/user.module
_filter_html_settings in modules/filter.module
Settings for the HTML filter.
_locale_string_seek_form in includes/locale.inc
User interface for the string search screen
_profile_field_form in modules/profile.module
_user_forms in modules/user.module
Retrieve a list of all form elements for the specified category.

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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.