function colorbox_node_rabbit_hole_execute_alter in Rabbit Hole 7.2
Implements hook_rabbit_hole_execute_alter() on behalf of colorbox_node.
File
- modules/
rh_node/ rh_node.module, line 136 - Main module file for Rabbit Hole nodes module.
Code
function colorbox_node_rabbit_hole_execute_alter(&$action, $context) {
if ($context['entity_type'] === 'node') {
// Version 7.x-3.x
$access = function_exists('colorbox_node_is_active') && colorbox_node_is_active();
// Version 7.x-3.5 and below.
$path = drupal_static('colorbox_original_q');
$access = $access || $path && arg(0, $path) === 'colorbox';
if ($access) {
$action = FALSE;
}
}
}