function views_page

cis7 views.module views_page($name, $display_id)
cle7 views.module views_page($name, $display_id)
elmsmedia7 views.module views_page($name, $display_id)
icor7 views.module views_page($name, $display_id)
meedjum_blog7 views.module views_page($name, $display_id)
mooc7 views.module views_page($name, $display_id)

Page callback: Displays a page view, given a name and display id.


$name: The name of a view.

$display_id: The display id of a view.

Return value

Either the HTML of a fully-executed view, or MENU_NOT_FOUND.

5 string references to 'views_page'
at_generate_html_classes in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
Return an array of classes to be used for body classes in html.tpl.php
boost_boost_menu_router in sites/all/modules/ulmus/boost/boost.module
Implements hook_boost_menu_router().
menu_position_activate_rule in sites/all/modules/local_contrib/menu_position/menu_position.module
Evaluates all rules based on the given path.
views_plugin_display_page::execute_hook_menu in sites/all/modules/ulmus/views/plugins/
Add this display's path information to Drupal's menu system.
zurb_foundation_preprocess_html in sites/all/themes/local_contrib/zurb-foundation/template.php
Implements template_preprocess_html().


sites/all/modules/ulmus/views/views.module, line 520
Primarily Drupal hooks and global API functions to manipulate views.


function views_page($name, $display_id) {
  $args = func_get_args();
  // Remove $name and $display_id from the arguments.

  // Load the view and render it.
  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 MENU_NOT_FOUND;