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/
cis7 theme_container($variables)
cle7 theme_container($variables)
elmsmedia7 theme_container($variables)
icor7 theme_container($variables)
meedjum_blog7 theme_container($variables)
mooc7 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.


$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/
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/
Theme feeds_ui_edit_page().
theme_feeds_ui_plugin_form in sites/all/modules/ulmus/feeds/feeds_ui/
Theme feeds_ui_plugin_form().
theme_options in sites/all/modules/ulmus/options_element/
Theme an options element.
93 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/
Form builder; Configure advagg settings.
authorize_filetransfer_form in includes/
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_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


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


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>';



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.