Guest User

Untitled

a guest
Mar 17th, 2014
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. <?php
  2.  
  3. function mh_profile_edit_menu() {
  4.   $items['user/%user/edit/account'] = array(
  5.     'title' => 'Account',
  6.     'type' => MENU_DEFAULT_LOCAL_TASK,
  7.     'weight' => -10,
  8.   );
  9.  
  10.   $items['user/%/edit/profile'] = array(
  11.     'title' => 'Profile',
  12.     'page callback' => 'mh_profile_edit_form',
  13.     'page arguments' => array(1),
  14.     'access callback' => 'mh_profile_edit_form_access',
  15.     'access arguments' => array(1),
  16.     'type' => MENU_LOCAL_TASK,
  17.   );
  18.  
  19.   return $items;
  20. }
  21.  
  22. function mh_profile_edit_form($uid) {
  23.   return 'Test';
  24. }
  25.  
  26. function mh_profile_edit_form_access($uid) {
  27.   return TRUE;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment