function calendar_arg_positions in Calendar 5
Same name and namespace in other branches
- 5.2 calendar.module \calendar_arg_positions()
The positions in the view that hold calendar arguments.
2 calls to calendar_arg_positions()
- calendar_is_calendar_arg in ./
calendar.module - Is the current argument a calendar argument. Used to sort out whether or not to display the calendar at each point.
- calendar_real_url in ./
calendar.module - Figure out what the URL of the calendar view we're currently looking at is.
File
- ./
calendar.module, line 1256 - Adds calendar filtering and displays to Views.
Code
function calendar_arg_positions($view) {
$calendar_info = calendar_info();
if (array_key_exists($view->name, $calendar_info)) {
return array_keys($calendar_info[$view->name]['args']);
}
else {
return array();
}
}