calendar_multiday.module in Calendar 7
Same filename and directory in other branches
Adds calendar filtering and displays to Views.
File
calendar_multiday/calendar_multiday.moduleView source
<?php
/**
* Implementation of hook_views_api().
*
* This one is used as the base to reduce errors when updating.
*/
function calendar_multiday_views_api() {
return array(
'api' => 3,
'path' => drupal_get_path('module', 'calendar_multiday'),
);
}
/**
* @file
* Adds calendar filtering and displays to Views.
*/
function calendar_multiday_init() {
if (substr($_GET['q'], 0, 24) == 'admin/build/modules/list') {
return;
}
drupal_add_css(drupal_get_path('module', 'calendar_multiday') . '/calendar_multiday.css');
module_load_include('inc', 'calendar_multiday', '/theme/theme');
}
function calendar_multiday_theme() {
$path = drupal_get_path('module', 'calendar_multiday');
$base = array(
'file' => 'theme.inc',
'path' => "{$path}/theme",
);
return array(
'calendar_day_node' => $base + array(
'template' => 'calendar-day-node',
'variables' => array(
'node' => NULL,
'view' => NULL,
),
),
'calendar_month_node' => $base + array(
'template' => 'calendar-month-node',
'variables' => array(
'node' => NULL,
'view' => NULL,
),
),
'calendar_week_node' => $base + array(
'template' => 'calendar-week-node',
'variables' => array(
'node' => NULL,
'view' => NULL,
),
),
'calendar_month_multiple_node' => $base + array(
'template' => 'calendar-month-multiple-node',
'variables' => array(
'curday' => NULL,
'count' => NULL,
'view' => NULL,
'types' => NULL,
),
),
'calendar_week_multiple_node' => $base + array(
'template' => 'calendar-week-multiple-node',
'variables' => array(
'curday' => NULL,
'count' => NULL,
'view' => NULL,
'types' => NULL,
),
),
'calendar_datebox' => $base + array(
'template' => 'calendar-datebox',
'variables' => array(
'date' => NULL,
'view' => NULL,
'items' => NULL,
'selected' => NULL,
),
),
'calendar_date_combo' => $base + array(
'variables' => array(
'node',
'lable',
'view',
),
),
'calendar_empty_day' => $base + array(
'variables' => array(
'curday',
'view',
),
),
'calendar_stripe_legend' => $base + array(
'variables' => array(
'stripe_labels',
),
),
'calendar_stripe_stripe' => $base + array(
'variables' => array(
'node',
),
),
'calendar_colorpicker' => $base + array(
'variables' => array(
'element',
),
),
'calendar_colorfield' => $base + array(
'variables' => array(
'element',
),
),
'calendar_time_row_heading' => $base + array(
'variables' => array(
'start_time',
'next_start_time',
'curday_date',
),
),
'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,
),
),
);
}
Functions
Name | Description |
---|---|
calendar_multiday_init | @file Adds calendar filtering and displays to Views. |
calendar_multiday_theme | |
calendar_multiday_views_api | Implementation of hook_views_api(). |