You are here

function print_contextual_links_view_alter in Printer, email and PDF versions 7

Same name and namespace in other branches
  1. 7.2 print.module \print_contextual_links_view_alter()

Implements hook_contextual_links_view_alter().

File

./print.module, line 926
Displays Printer-friendly versions of Drupal pages.

Code

function print_contextual_links_view_alter(&$element, $items) {

  // Hide all contextual links
  if (preg_match('!^print!', $_GET['q'])) {
    unset($element['#links']);
  }
}