How to replace the Secondary menu title with the current Username? 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:

&lt;?php if ($secondary_menu): ?&gt;
  &lt;div id="secondary-menu" class="navigation"&gt;
    &lt;?php print theme('links__system_secondary_menu', array(
      'links' =&gt; $secondary_menu,
      'attributes' =&gt; array(
        'id' =&gt; 'secondary-menu-links',
        'class' =&gt; array('links', 'inline', 'clearfix'),
      ),
      'heading' =&gt; array(
        'text' =&gt; t('Secondary menu'),
        'level' =&gt; 'h2',
        'class' =&gt; array('element-invisible'),
      ),
    )); ?&gt;
  &lt;/div&gt; &lt;!-- /#secondary-menu --&gt;
&lt;?php endif; ?&gt;


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.
I think you can simply do this by making change in page.tpl.php file.

Just replace,

'text' =&gt; t('Secondary menu'),


with,

'text' =&gt; t($user-&gt;name),


save and clear cache.

Image-1: Before changing code (I have deleted line 'class' =&gt; array('element-invisible'), so text can be visible)



Image-2: After change,



Final code,

&lt;?php if ($secondary_menu): ?&gt;
      &lt;div id="secondary-menu" class="navigation"&gt;
        &lt;?php print theme('links__system_secondary_menu', array(
          'links' =&gt; $secondary_menu,
          'attributes' =&gt; array(
            'id' =&gt; 'secondary-menu-links',
            'class' =&gt; array('links', 'inline', 'clearfix'),
          ),
          'heading' =&gt; array(
            //'text' =&gt; t('Secondary menu'),
            'text' =&gt; t($user-&gt;name),
            'level' =&gt; 'h2',
            //'class' =&gt; array('element-invisible'),
          ),
        )); ?&gt;
      &lt;/div&gt; &lt;!-- /#secondary-menu --&gt;
    &lt;?php endif; ?&gt;