You are here

function calendar_arg_position in Calendar 7

Same name and namespace in other branches
  1. 6.2 calendar.module \calendar_arg_position()
  2. 7.2 calendar.module \calendar_arg_position()
1 call to calendar_arg_position()
calendar_date_select_form in ./calendar.module
The date selector form.

File

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

Code

function calendar_arg_position($view) {
  $pos = 0;
  foreach ($view->argument as $argument) {
    if ($argument->definition['handler'] == 'date_views_argument_handler') {
      return $pos;
    }
    $pos++;
  }
}