You are here

function date_views_page_url in Date 6.2

Same name and namespace in other branches
  1. 7 date_views/includes/date_views.views.inc \date_views_page_url()

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

File

includes/date_api.views.inc, line 232
Defines date-related Views data and plugins:

Code

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