Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I want to use token to show user name in block title. But it is not working. I tried like [user:name]

Thanks in advacne

share|improve this question
    
By default, tokens are not available in blocks. Why do you think you could use them? –  kiamlaluno May 5 at 11:41
    
Here is the list of all token:drupal.org/node/390482#token-current-user –  Suresh Kamrushi May 6 at 8:38

2 Answers 2

up vote 3 down vote accepted

The correct format is [current-user:name].

share|improve this answer

You need to write [site:current-user] to get current username.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.