You are here

function calendar_has_calendar_args in Calendar 5

Same name and namespace in other branches
  1. 5.2 calendar.module \calendar_has_calendar_args()

Function to test whether any calendar args are used in this view.

3 calls to calendar_has_calendar_args()
calendar_views_post_view in ./calendar.module
Implementation of hook_views_post_view().
calendar_views_pre_view in ./calendar.module
Implementation of hook_views_pre_view()
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…

File

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

Code

function calendar_has_calendar_args($view, $reset = FALSE) {
  $calendar_info = calendar_info();
  if (count($calendar_info[$view->name]['args']) > 0) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}