function drupal_common_theme in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/includes/theme.inc \drupal_common_theme()
Provides theme registration for themes across .inc files.
1 call to drupal_common_theme()
- system_theme in core/
modules/ system/ system.module - Implements hook_theme().
File
- core/
includes/ theme.inc, line 1688 - The theme system, which controls the output of Drupal.
Code
function drupal_common_theme() {
return array(
// From theme.inc.
'html' => array(
'render element' => 'html',
),
'page' => array(
'render element' => 'page',
),
'page_title' => array(
'variables' => array(
'title' => NULL,
),
),
'region' => array(
'render element' => 'elements',
),
'time' => array(
'variables' => array(
'timestamp' => NULL,
'text' => NULL,
'attributes' => array(),
),
),
'datetime_form' => array(
'render element' => 'element',
),
'datetime_wrapper' => array(
'render element' => 'element',
),
'status_messages' => array(
'variables' => [
'status_headings' => [],
'message_list' => NULL,
],
),
'links' => array(
'variables' => array(
'links' => array(),
'attributes' => array(
'class' => array(
'links',
),
),
'heading' => array(),
'set_active_class' => FALSE,
),
),
'dropbutton_wrapper' => array(
'variables' => array(
'children' => NULL,
),
),
'image' => array(
// HTML 4 and XHTML 1.0 always require an alt attribute. The HTML 5 draft
// allows the alt attribute to be omitted in some cases. Therefore,
// default the alt attribute to an empty string, but allow code calling
// _theme('image') to pass explicit NULL for it to be omitted. Usually,
// neither omission nor an empty string satisfies accessibility
// requirements, so it is strongly encouraged for code calling
// _theme('image') to pass a meaningful value for the alt variable.
// - http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.8
// - http://www.w3.org/TR/xhtml1/dtds.html
// - http://dev.w3.org/html5/spec/Overview.html#alt
// The title attribute is optional in all cases, so it is omitted by
// default.
'variables' => array(
'uri' => NULL,
'width' => NULL,
'height' => NULL,
'alt' => '',
'title' => NULL,
'attributes' => array(),
'sizes' => NULL,
'srcset' => array(),
'style_name' => NULL,
),
),
'breadcrumb' => array(
'variables' => array(
'links' => array(),
),
),
'table' => array(
'variables' => array(
'header' => NULL,
'rows' => NULL,
'footer' => NULL,
'attributes' => array(),
'caption' => NULL,
'colgroups' => array(),
'sticky' => FALSE,
'responsive' => TRUE,
'empty' => '',
),
),
'tablesort_indicator' => array(
'variables' => array(
'style' => NULL,
),
),
'mark' => array(
'variables' => array(
'status' => MARK_NEW,
),
),
'item_list' => array(
'variables' => array(
'items' => array(),
'title' => '',
'list_type' => 'ul',
'wrapper_attributes' => array(),
'attributes' => array(),
'empty' => NULL,
'context' => array(),
),
),
'feed_icon' => array(
'variables' => array(
'url' => NULL,
'title' => NULL,
),
),
'progress_bar' => array(
'variables' => array(
'label' => NULL,
'percent' => NULL,
'message' => NULL,
),
),
'indentation' => array(
'variables' => array(
'size' => 1,
),
),
// From theme.maintenance.inc.
'maintenance_page' => array(
'render element' => 'page',
),
'install_page' => array(
'render element' => 'page',
),
'maintenance_task_list' => array(
'variables' => array(
'items' => NULL,
'active' => NULL,
'variant' => NULL,
),
),
'authorize_report' => array(
'variables' => [
'messages' => [],
'attributes' => [],
],
'includes' => [
'core/includes/theme.maintenance.inc',
],
'template' => 'authorize-report',
),
// From pager.inc.
'pager' => array(
'render element' => 'pager',
),
// From menu.inc.
'menu' => array(
'variables' => array(
'menu_name' => NULL,
'items' => array(),
'attributes' => array(),
),
),
'menu_local_task' => array(
'render element' => 'element',
),
'menu_local_action' => array(
'render element' => 'element',
),
'menu_local_tasks' => array(
'variables' => array(
'primary' => array(),
'secondary' => array(),
),
),
// From form.inc.
'input' => array(
'render element' => 'element',
),
'select' => array(
'render element' => 'element',
),
'fieldset' => array(
'render element' => 'element',
),
'details' => array(
'render element' => 'element',
),
'radios' => array(
'render element' => 'element',
),
'checkboxes' => array(
'render element' => 'element',
),
'form' => array(
'render element' => 'element',
),
'textarea' => array(
'render element' => 'element',
),
'form_element' => array(
'render element' => 'element',
),
'form_element_label' => array(
'render element' => 'element',
),
'vertical_tabs' => array(
'render element' => 'element',
),
'container' => array(
'render element' => 'element',
),
// From field system.
'field' => array(
'render element' => 'element',
),
'field_multiple_value_form' => array(
'render element' => 'element',
),
);
}