function views_contextual_links_view_alter

cis7 views.module views_contextual_links_view_alter(&$element, $items)
cle7 views.module views_contextual_links_view_alter(&$element, $items)
elmsmedia7 views.module views_contextual_links_view_alter(&$element, $items)
icor7 views.module views_contextual_links_view_alter(&$element, $items)
meedjum_blog7 views.module views_contextual_links_view_alter(&$element, $items)
mooc7 views.module views_contextual_links_view_alter(&$element, $items)

Implements hook_contextual_links_view_alter().

File

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

Code

function views_contextual_links_view_alter(&$element, $items) {
  // If we are rendering views-related contextual links attached to the overall
  // page array, add a class to the list of contextual links. This will be used
  // by the JavaScript added in views_preprocess_html().
  if (!empty($element['#element']['#views_contextual_links_info']) && !empty($element['#element']['#type']) && $element['#element']['#type'] == 'page') {
    $element['#attributes']['class'][] = 'views-contextual-links-page';
  }
}
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.