Skip to content

Instantly share code, notes, and snippets.

View didlix's full-sized avatar

Rachel Graves didlix

View GitHub Profile
@didlix
didlix / gist:1424088
Created December 2, 2011 17:29 — forked from maartenJacobs/gist:1424084
Viewing of content type restriction
<?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';