You are here

function calendar_url_append in Calendar 5

Pick up filter and sort info from url.

4 calls to calendar_url_append()
calendar_get_nodes in ./calendar.module
The workhorse function that takes the beginning array of items and alters it to an array of calendar nodes that the theme can handle.
calendar_nav in ./calendar.module
Function to construct back and next navigation from views arguments
theme_calendar_nav_title in ./calendar.theme
Theme the navigation bar title
theme_calendar_show_nav in ./calendar.theme
Format the calendar navigation

File

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

Code

function calendar_url_append($view) {
  if ($view->build_type == 'page') {
    foreach ($_GET as $key => $val) {
      if ($key != 'q' && $key != 'view') {
        if (!is_array($val)) {
          $url .= '&' . $key . '=' . $val;
        }
        else {
          foreach ($val as $v) {
            $url .= '&' . $key . '[]=' . $v;
          }
        }
      }
    }
  }
  return $url;
}