You are here

function calendar_theme in Calendar 7.3

Same name and namespace in other branches
  1. 8.2 calendar.module \calendar_theme()
  2. 8 calendar.module \calendar_theme()
  3. 6.2 calendar.module \calendar_theme()
  4. 7 calendar.module \calendar_theme()
  5. 7.2 calendar.module \calendar_theme()

Implements hook_theme().

File

./calendar.module, line 228
Adds calendar filtering and displays to Views.

Code

function calendar_theme() {
  $module_path = drupal_get_path('module', 'calendar');
  $base = array(
    'file' => 'theme.inc',
    'path' => "{$module_path}/theme",
  );
  return array(
    'calendar_item' => $base + array(
      'template' => 'calendar-item',
      'variables' => array(
        'view' => NULL,
        'rendered_fields' => NULL,
        'item' => NULL,
      ),
    ),
    'calendar_datebox' => $base + array(
      'template' => 'calendar-datebox',
      'variables' => array(
        'date' => NULL,
        'view' => NULL,
        'items' => NULL,
        'selected' => NULL,
      ),
    ),
    'calendar_empty_day' => $base + array(
      'variables' => array(
        'curday' => NULL,
        'view' => NULL,
      ),
    ),
    'calendar_stripe_legend' => $base + array(
      'variables' => array(
        'view' => NULL,
      ),
    ),
    'calendar_stripe_stripe' => $base + array(
      'variables' => array(
        'node' => NULL,
      ),
    ),
    'calendar_time_row_heading' => $base + array(
      'variables' => array(
        'start_time' => NULL,
        'next_start_time' => NULL,
        'curday_date' => NULL,
      ),
    ),
    'calendar_month_col' => $base + array(
      'template' => 'calendar-month-col',
      'variables' => array(
        'item' => NULL,
      ),
    ),
    'calendar_month_row' => $base + array(
      'template' => 'calendar-month-row',
      'variables' => array(
        'inner' => NULL,
        'class' => NULL,
        'iehint' => NULL,
      ),
    ),
    'calendar_month_multiple_entity' => $base + array(
      'template' => 'calendar-month-multiple-entity',
      'variables' => array(
        '
         curday' => NULL,
        'count' => NULL,
        'view' => NULL,
        'ids' => NULL,
      ),
    ),
  );
}