function accountmenu_myaccount in Account menu 7
Redirect user/self to the user's actual profile page.
1 string reference to 'accountmenu_myaccount'
- accountmenu_menu in ./
accountmenu.module - Implements hook_menu.
File
- ./
accountmenu.module, line 81 - accountmenu.module Provide a dynamic Log in/My account/Log out account menu
Code
function accountmenu_myaccount() {
global $user;
drupal_goto('user/' . $user->uid);
}