views_page

6 views.module views_page()
7 views.module views_page($name, $display_id)

Page callback entry point; requires a view and a display id, then passes control to the display handler.

1 string reference to 'views_page'

File

./views.module, line 437
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_page() {
  $args = func_get_args();
  $name = array_shift($args);
  $display_id = array_shift($args);

  // Load the view
  if ($view = views_get_view($name)) {
    return $view->execute_display($display_id, $args);
  }

  // Fallback; if we get here no view was found or handler was not valid.
  return drupal_not_found();
}
Login or register to post comments