Skip to content

Instantly share code, notes, and snippets.

@dergachev
Created February 1, 2012 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dergachev/1719182 to your computer and use it in GitHub Desktop.
Save dergachev/1719182 to your computer and use it in GitHub Desktop.
<?php
function my_module_menu() {
$items = array();
$items['node/%node/my-module'] = array(
'title' => 'Notes',
'description' => 'Notes for each Node',
'page callback' => 'my_module_node_notes',
'page arguments' => array(1),
'access callback' => 'node_access',
'access arguments' => array('view', 1),
return $items;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment