function views_page_alter

cis7 views.module views_page_alter(&$page)
cle7 views.module views_page_alter(&$page)
elmsmedia7 views.module views_page_alter(&$page)
icor7 views.module views_page_alter(&$page)
meedjum_blog7 views.module views_page_alter(&$page)
mooc7 views.module views_page_alter(&$page)

Implements hook_page_alter().

File

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

Code

function views_page_alter(&$page) {
  // If the main content of this page contains a view, attach its contextual
  // links to the overall page array. This allows them to be rendered directly
  // next to the page title.
  $view = views_get_page_view();
  if (!empty($view)) {
    // If a module is still putting in the display like we used to, catch that.
    if (is_subclass_of($view, 'views_plugin_display')) {
      $view = $view->view;
    }

    views_add_contextual_links($page, 'page', $view, $view->current_display);
  }
}
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.