1 views.module views_preprocess_layout(&$variables)

Implements hook_preprocess_layout().


core/modules/views/views.module, line 558
Primarily Backdrop hooks and global API functions to manipulate views.


function views_preprocess_layout(&$variables) {
  // 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;