theme_container
- Versions
- 7
theme_container($variables)
Adds a container for grouped items
Parameters
$element An associative array containing the properties and children of the group. Properties used: #id, #attributes, #children.
Return value
A themed HTML string representing the form element.
Related topics
Code
includes/form.inc, line 2296
<?php
function theme_container($variables) {
$element = $variables['element'];
if (!isset($element['#attributes']['id'])) {
$element['#attributes']['id'] = $element['#id'];
}
// Force the 'form-wrapper' class.
$element['#attributes']['class'][] = 'form-wrapper';
return '<div' . drupal_attributes($element['#attributes']) . '>' . $element['#children'] . '</div>';
}
?>Login or register to post comments 