You are here

function views_navigation_router in Views navigation 7

Redirect to the next or previous entity.

1 string reference to 'views_navigation_router'
views_navigation_menu in ./views_navigation.module
Implements hook_menu().

File

./views_navigation.inc, line 137
Views navigation main include file.

Code

function views_navigation_router($cid, $pos) {
  $back_pos = arg(3);
  if (list($path, $options) = _views_navigation_get_data($cid, $pos, $back_pos)) {
    drupal_goto($path, $options);
  }

  // Something went wrong.
  watchdog('views_navigation', 'Could not find the requested page.', \func_get_args(), WATCHDOG_ERROR);
  return t("Sorry, could not find the requested page.");
}