function theme_container

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 form.inc theme_container($variables)
cle7 form.inc theme_container($variables)
elmsmedia7 form.inc theme_container($variables)
icor7 form.inc theme_container($variables)
meedjum_blog7 form.inc theme_container($variables)
mooc7 form.inc theme_container($variables)

Returns HTML to wrap child elements in a container.

Used for grouped form items. Can also be used as a #theme_wrapper for any renderable element, to surround it with a <div> and add attributes such as classes or an HTML id.

Parameters

$variables: An associative array containing:

  • element: An associative array containing the properties of the element. Properties used: #id, #attributes, #children.

Related topics

4 theme calls to theme_container()
theme_feeds_ui_container in sites/all/modules/ulmus/feeds/feeds_ui/feeds_ui.admin.inc
Render a simple container. A container can have a title, a description and one or more actions. Recursive.
theme_feeds_ui_edit_page in sites/all/modules/ulmus/feeds/feeds_ui/feeds_ui.admin.inc
Theme feeds_ui_edit_page().
theme_feeds_ui_plugin_form in sites/all/modules/ulmus/feeds/feeds_ui/feeds_ui.admin.inc
Theme feeds_ui_plugin_form().
theme_options in sites/all/modules/ulmus/options_element/options_element.inc
Theme an options element.
85 string references to the theme hook from theme_container()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

accessibility_test_edit_form in sites/all/modules/ulmus/accessibility/accessibility.module
Edit form for accessibility tests.
advagg_admin_settings_form in sites/all/modules/ulmus/advagg/advagg.admin.inc
Form builder; Configure advagg settings.
authorize_filetransfer_form in includes/authorize.inc
Form constructor for the file transfer authorization form.
better_exposed_filters_exposed_form_plugin::options_form in sites/all/modules/ulmus/better_exposed_filters/better_exposed_filters_exposed_form_plugin.inc
Provide a form to edit options for this plugin.
better_formats_field_settings_form in sites/all/modules/ulmus/better_formats/better_formats.module
Build the settings form for Field API fields.

... See full list

File

includes/form.inc, line 3288
Functions for form and batch generation and processing.

Code

function theme_container($variables) {
  $element = $variables['element'];

  // Special handling for form elements.
  if (isset($element['#array_parents'])) {
    // Assign an html ID.
    if (!isset($element['#attributes']['id'])) {
      $element['#attributes']['id'] = $element['#id'];
    }
    // Add the 'form-wrapper' class.
    $element['#attributes']['class'][] = 'form-wrapper';
  }

  return '<div' . drupal_attributes($element['#attributes']) . '>' . $element['#children'] . '</div>';
}