You are here

function calendar_arg_positions in Calendar 5.2

Same name and namespace in other branches
  1. 5 calendar.module \calendar_arg_positions()

The positions in the view that hold calendar arguments.

5 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.
calendar_views_query_alter in ./calendar.module
Implementation of hook_views_query() Insert filters into the query based on the current calendar view and the selected fields Used when the actual view arguments don't provide enough info to construct the query. i.e. on a view with no arguments…
theme_calendar_views_calendar in ./calendar.theme
Calendar Views plugin theme, overrides default views theme to create a calendar view.
_calendar_views_query_alter in ./calendar.inc
@file All the code used while processing a calendar is stored in this file and is included only when needed.

File

./calendar.module, line 686
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();
  }
}