Advertisement
DanielHolm

Untitled

Jun 21st, 2011
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. function mymodule_menu() {
  2.  
  3.   $items['path1'] = array(
  4.  
  5.     'title' => 'Pagetitle1',
  6.  
  7.     'page callback' => 'function1',
  8.  
  9.     'access callback' => TRUE,
  10.  
  11.     'type' => MENU_CALLBACK,
  12.  
  13.   );
  14.  
  15.   $items['path2'] = array(
  16.  
  17.     'title' => 'Pagetitle2',
  18.  
  19.     'page callback' => array('function2','function3'),
  20.  
  21.     'access callback' => TRUE,
  22.  
  23.     'type' => MENU_CALLBACK,
  24.  
  25.   );
  26.  
  27.   return $items;
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement