hook_menu_alter

Serious. String. Retardation.

  1. function hook_menu_alter(&$callbacks) {
  2.   foreach ($callbacks as $key => $value) {
  3.     $callbacks[$key]['title'] = ucwords($value['title']);
  4.   }
  5. }

deny access for a specific page to anon users

  1. function sandbox_menu_alter(&$callbacks) {
  2.   $callbacks['node/11']['access callback'] = 'sandbox_user_check';
  3. }
  4.  
  5. function sandbox_user_check() {
  6.         global $user;
  7.         return ($user->uid > 0);
  8. }

Callback overrides 5.x -> 6.x

  1. // what we had in 5.x
  2.  
  3. function mymodule_menu($may_cache)
  4. {
  5.   $items = array();
  6.   if(!may_cache && module_exists('devel'))
  7.   {
  8.      $items[] = array(
Syndicate content