You are here

function calendar_page_url in Calendar 5.2

Identify the base url of the page, needed when the calendar is embedded so we don't set the url to the calendar url.

1 call to calendar_page_url()
theme_calendar_views_calendar in ./calendar.theme
Calendar Views plugin theme, overrides default views theme to create a calendar view.

File

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

Code

function calendar_page_url($view) {
  if ($view->build_type == 'page') {
    return calendar_real_url($view, $view->real_args);
  }
  else {
    $block_identifier = isset($view->block_identifier) ? $view->block_identifier : 'mini';
    return url($_GET['q'], calendar_querystring($view, array(
      $block_identifier => NULL,
    )), NULL, TRUE);
  }
}