Secondary menu - this is the system secondary menu title. I need to replace it with current username, the same as the User menu block has it.
I do not want to use the User menu block because of some reasons. I would like to use the deafault system menu:
<?php if ($secondary_menu): ?>
<div id="secondary-menu" class="navigation">
<?php print theme('links__system_secondary_menu', array(
'links' => $secondary_menu,
'attributes' => array(
'id' => 'secondary-menu-links',
'class' => array('links', 'inline', 'clearfix'),
),
'heading' => array(
'text' => t('Secondary menu'),
'level' => 'h2',
'class' => array('element-invisible'),
),
)); ?>
</div> <!-- /#secondary-menu -->
<?php endif; ?>
Should I use token [current-user:name]? If so, then where (file name) and how?
Note: I can not do it directly at /admin/structure/menu/manage/user-menu/edit
because Menu name field is inactive.
My account
it will show the current loginuser-name
in thedefault secondary menu
? What drupal version are you using?Secondary menu
word does not appear in the User interface anywhere as far as I know. Secondary menu show, onlyMy account
andLogout
While User Menu Block will show menu-titleUser menu
then two listMy account
andLogout
. These five thing appears to user. out of these which one you wan tot change.