function date_theme in Date 7
Same name and namespace in other branches
- 8 date.module \date_theme()
- 6.2 date/date.module \date_theme()
- 6 date/date.module \date_theme()
- 7.3 date.module \date_theme()
- 7.2 date.module \date_theme()
Implements hook_theme().
File
- ./
date.module, line 151
Code
function date_theme() {
$path = drupal_get_path('module', 'date');
module_load_include('theme', 'date', 'date');
$base = array(
'file' => 'date.theme',
'path' => "{$path}",
);
$themes = array(
'date_combo' => $base + array(
'render element' => 'element',
),
'date_text_parts' => $base + array(
'render element' => 'element',
),
'date' => $base + array(
'render element' => 'element',
),
'date_all_day' => $base + array(
'variables' => array(
'field' => NULL,
'instance' => NULL,
'which' => NULL,
'date1' => NULL,
'date2' => NULL,
'format' => NULL,
'entity_type' => NULL,
'entity' => NULL,
'view' => NULL,
),
),
'date_all_day_label' => $base + array(
'variables' => array(),
),
'date_display_single' => $base + array(
'variables' => array(
'date' => NULL,
'timezone' => NULL,
),
),
'date_display_range' => $base + array(
'variables' => array(
'date1' => NULL,
'date2' => NULL,
'timezone' => NULL,
),
),
'date_repeat_display' => $base + array(
'variables' => array(
'field' => NULL,
'item' => NULL,
'entity_type' => NULL,
'entity' => NULL,
'dates' => NULL,
),
'function' => 'theme_date_repeat_display',
),
'date_display_combination' => $base + array(
'variables' => array(
'entity_type' => NULL,
'entity' => NULL,
'field' => NULL,
'instance' => NULL,
'langcode' => NULL,
'item' => NULL,
'delta' => NULL,
'display' => NULL,
'dates' => NULL,
),
),
'date_display_interval' => $base + array(
'variables' => array(
'entity_type' => NULL,
'entity' => NULL,
'field' => NULL,
'instance' => NULL,
'langcode' => NULL,
'item' => NULL,
'delta' => NULL,
'display' => NULL,
'dates' => NULL,
),
),
);
return $themes;
}