Guest User

Untitled

a guest
Jul 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. $items['account'] = array(
  2. 'title' => t('Account details'),
  3. 'page callback' => 'bxdev_user_user_profile_form',
  4. 'access arguments' => array('access content'),
  5. 'file path' => drupal_get_path('module','user'),
  6. 'file' => 'user.pages.inc',
  7. 'type' => MENU_CALLBACK,
  8. );
  9.  
  10. function bxdev_user_user_profile_form(){
  11. global $user;
  12. $user_obj = user_load($user->uid);
  13. $form = drupal_get_form('user_profile_form', $user_obj);
  14. return drupal_render($form);
  15. }
Add Comment
Please, Sign In to add comment