This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_menu_alter(). | |
*/ | |
function module_menu_alter(&$items) { | |
$old_callback = $items['node/%node']['access callback']; | |
$old_args = $items['node/%node']['access arguments']; | |
// Overrides the access callback to remove access to note content | |
$items['node/%node']['access callback'] = '_note_node_view_access'; |