function date_views_theme in Date 8
Same name and namespace in other branches
- 7.3 date_views/date_views.module \date_views_theme()
- 7 date_views/date_views.module \date_views_theme()
- 7.2 date_views/date_views.module \date_views_theme()
Implements hook_views_api().
This one is used as the base to reduce errors when updating.
File
- date_views/
date_views.module, line 11
Code
function date_views_theme() {
$path = drupal_get_path('module', 'date_views');
$base = array(
'file' => 'theme.inc',
'path' => "{$path}/theme",
);
return array(
'date_nav_title' => $base + array(
'variables' => array(
'granularity' => NULL,
'view' => NULL,
'link' => NULL,
'format' => NULL,
),
),
'date_views_filter_form' => $base + array(
'template' => 'date-views-filter-form',
'render element' => 'form',
),
'date_calendar_day' => $base + array(
'variables' => array(
'date' => NULL,
),
),
'date_views_pager' => $base + array(
'variables' => array(
'plugin' => NULL,
'input' => NULL,
),
// Register a pattern so that it can work like all views templates.
'pattern' => 'date_views_pager__',
'template' => 'date-views-pager',
),
);
}