You are here

function accountmenu_preprocess_menu_link in Account menu 7

Apply the @name and @realname tokens to the user/self menu item in a menu block

File

./accountmenu.module, line 255
accountmenu.module Provide a dynamic Log in/My account/Log out account menu

Code

function accountmenu_preprocess_menu_link(&$vars) {
  if ($vars['element']['#href'] == 'user/self') {
    $vars['element']['#title'] = t($vars['element']['#title'], _accountmenu_get_name_and_realname());
  }
}