Skip to content

Instantly share code, notes, and snippets.

@robballou
Created May 3, 2012 20:28
Show Gist options
  • Save robballou/2589032 to your computer and use it in GitHub Desktop.
Save robballou/2589032 to your computer and use it in GitHub Desktop.
custom_content_pages example hook_menu() implementation
<?php
/**
* Implement hook_menu()
*/
function custom_content_pages_menu() {
$items['custom/%/about'] = array(
'page callback' => 'custom_content_pages_about',
'access arguments' => array('access content'),
);
$items['custom/%/children'] = array(
'page callback' => 'custom_content_pages_children',
'access arguments' => array('access content'),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment