function accountmenu_preprocess_block in Account menu 7
Same name and namespace in other branches
- 6 accountmenu.module \accountmenu_preprocess_block()
Substitue tokens @name and @realname with login name and realname. @realname is same as @name if realname module is not install.
Parameters
Array $vars variables array pass in fro core:
Return value
Array two element array, element 0 is name, 1 is realname
File
- ./
accountmenu.module, line 230 - accountmenu.module Provide a dynamic Log in/My account/Log out account menu
Code
function accountmenu_preprocess_block(&$vars) {
if ('accountmenu' == $vars['block']->delta) {
$token_list = _accountmenu_get_name_and_realname();
$vars['block']->subject = t($vars['block']->subject, $token_list);
}
}