You are here

function date_views_theme in Date 7.3

Same name and namespace in other branches
  1. 8 date_views/date_views.module \date_views_theme()
  2. 7 date_views/date_views.module \date_views_theme()
  3. 7.2 date_views/date_views.module \date_views_theme()

Implements hook_views_api().

File

date_views/date_views.module, line 83
Date Views module.

Code

function date_views_theme() {

  // This one is used as the base to reduce errors when updating.
  $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',
    ),
  );
}