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.

Parameters

$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/generate.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/views_plugin_display_page.inc
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().

File

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

Code

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

  // 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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.