function calendar_info in Calendar 5.2
Same name and namespace in other branches
- 5 calendar.module \calendar_info()
Function to get information about all views that have calendar components.
6 calls to calendar_info()
- calendar_arg_positions in ./
calendar.module - The positions in the view that hold calendar arguments.
- calendar_clear_all in ./
calendar.module - Empty or reset cached values.
- calendar_has_calendar_args in ./
calendar.module - Function to test whether any calendar args are used in this view.
- calendar_ical_menu in ./
calendar_ical.module - Implementation of hook_menu().
- calendar_is_calendar in ./
calendar.module - Function to test whether this is a view that uses the calendar plugin theme.
File
- ./
calendar.module, line 822 - Adds calendar filtering and displays to Views.
Code
function calendar_info($reset = FALSE) {
static $calendar_views;
if (empty($calendar_views) || $reset) {
$cid = 'calendar_views';
if (!$reset && ($cached = cache_get($cid, 'cache_views'))) {
$calendar_views = unserialize($cached->data);
}
else {
require_once './' . drupal_get_path('module', 'calendar') . '/calendar_admin.inc';
$calendar_views = _calendar_info();
}
}
return $calendar_views;
}