Skip to content

Instantly share code, notes, and snippets.

@brianyang
Created October 6, 2011 11:25
Show Gist options
  • Save brianyang/1267181 to your computer and use it in GitHub Desktop.
Save brianyang/1267181 to your computer and use it in GitHub Desktop.
Drupal 7 - Implements hook_menu_alter()
/**
* Implements hook_menu_alter().
*
* Changing the page callback of a test page.
*/
function pages_menu_alter(&$items) {
$items['A&E']['page callback'] = 'a_and_e';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment