1.20.x date.module | date_theme($existing, $type, $theme, $path) |
Implements hook_theme().
File
- modules/
date/ date.module, line 116 - Defines date/time field types.
Code
function date_theme($existing, $type, $theme, $path) {
$base = array(
'file' => 'date.theme.inc',
'path' => $path,
);
$themes = array(
'date_timezone' => array(
'render element' => 'element'
) + $base,
'date_select' => array(
'render element' => 'element'
) + $base,
'date_text' => array(
'render element' => 'element'
) + $base,
'date_select_element' => array(
'render element' => 'element',
) + $base,
'date_textfield_element' => array(
'render element' => 'element',
) + $base,
'date_views_filter_form' => array(
'template' => 'date-views-filter-form',
'render element' => 'form'
) + $base,
'date_time_ago' => array(
'variables' => array('start_date' => NULL, 'end_date' => NULL, 'interval' => NULL
)
) + $base,
'date_combo' => array(
'render element' => 'element',
) + $base,
'date_text_parts' => array(
'render element' => 'element'
) + $base,
'date' => array(
'render element' => 'element',
) + $base,
'date_popup' => array(
'render element' => 'element',
) + $base,
'date_display_single' => array(
'variables' => array(
'date' => NULL,
'timezone' => NULL,
'dates' => NULL,
'attributes' => array(),
),
) + $base,
'date_display_range' => array(
'variables' => array(
'date1' => NULL,
'date2' => NULL,
'timezone' => NULL,
'dates' => NULL,
// HTML attributes that will be applied to both the start and end dates
// (unless overridden).
'attributes' => array(),
// HTML attributes that will be applied to the start date only.
'attributes_start' => array(),
// HTML attributes that will be applied to the end date only.
'attributes_end' => array(),
),
) + $base,
'date_display_remaining' => array(
'variables' => array(
'remaining_days' => NULL,
),
) + $base,
'date_display_combination' => array(
'variables' => array(
'entity_type' => NULL,
'entity' => NULL,
'field' => NULL,
'instance' => NULL,
'langcode' => NULL,
'item' => NULL,
'delta' => NULL,
'display' => NULL,
'dates' => NULL,
'attributes' => array(),
),
) + $base,
'date_display_interval' => array(
'variables' => array(
'entity_type' => NULL,
'entity' => NULL,
'field' => NULL,
'instance' => NULL,
'langcode' => NULL,
'item' => NULL,
'delta' => NULL,
'display' => NULL,
'dates' => NULL,
'attributes' => array(),
),
) + $base,
'date_nav_title' => array(
'variables' => array(
'granularity' => NULL,
'view' => NULL,
'link' => NULL,
'format' => NULL,
),
) + $base,
'date_views_filter_form' => array(
'template' => 'templates/date-views-filter-form',
'render element' => 'form',
) + $base,
'date_views_pager' => array(
'variables' => array(
'plugin' => NULL,
'input' => NULL,
),
// Register a pattern so that it can work like all views templates.
'pattern' => 'date_views_pager__',
'template' => 'templates/date-views-pager',
) + $base,
);
return $themes;
}