Commit 4a8a0c57 authored by jcnventura's avatar jcnventura

Remove contextual links from the print view.

parent 9ac61d37
......@@ -933,3 +933,11 @@ function print_query_string_encode($query, $exclude = array(), $parent = '') {
return $params;
}
/**
* Implements hook_contextual_links_view_alter().
*/
function print_contextual_links_view_alter(&$element, $items) {
// Hide contextual links, always
$element['#attributes']['class'][] = 'element-hidden';
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment