Is this possible?
If not considerer this as a feature request.

Comments

mattyoung’s picture

Status: Active » Closed (won't fix)

This is not possible.

anrikun’s picture

Assigned: Unassigned » anrikun
Status: Closed (won't fix) » Needs review

Actually it is possible.

If someone is interested, add this code to your custom theme's template.php:

<?php
function MYTHEMENAME_preprocess_block(&$vars) {
  if ($vars['block']->delta == 'accountmenu') {
    $user = $vars['user'];
    if ($user->uid) {
      $name = function_exists('realname_user_page_title') ? realname_user_page_title($user) : $user->name;
      $vars['block']->subject = check_plain($name);
    }
  }
}
?>

@maintainer: why not adding a default version of this function (accountmenu_preprocess_block) to the module?

anrikun’s picture

Category: support » feature
mattyoung’s picture

Thanks for the info.

I implemented this. In the accountmenu block configure screen, block title field, you can have the tokens @name and @realname to be replace with user's login name and realname from the realname module.

It's in cvs HEAD, use cvs checkout to get it now or wait for release bot to make a dev release. Give it a try and see if this works well for you.

anrikun’s picture

Version: 6.x-1.7 » 6.x-1.x-dev
Status: Needs review » Reviewed & tested by the community

Sorry for the late feedback.
It works, thanks!

anrikun’s picture

Can we expect a new official release soon?

Stomper’s picture

Update on release status?

anrikun’s picture

This is committed, isn't it? Shouldn't it be marked as fixed then?

Waiting for a new official release, please!

mattyoung’s picture

Version: 6.x-1.x-dev » 6.x-1.8
Status: Reviewed & tested by the community » Closed (fixed)

I made the 1.8 is release. You can have @name and @realname replacement token in the block title.

Thanks!

anrikun’s picture

Great, thanks!