As a related feature to check_plain strips html in message, it would be nice if tokens were parsed in the message string. This can be accomplished by adding a call to token_replace on line 71:

drupal_set_message(filter_xss(token_replace($logout_message)));

Attached is a copy of the module (versioned as 1.2) that includes token and html tag support.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

.Deadcode created an issue. See original summary.

aditya.n’s picture

Status: Active » Needs review
FileSize
658 bytes

Applying patch with changes :)

Prashant.c’s picture

Status: Needs review » Fixed

Above patch tested and seems to be working fine.

Thanks for your contribution @.Deadcode and @aditya.n.

  • Prashant.c committed 3af1dc3 on 7.x-1.x authored by aditya.n
    Issue #2772445 by aditya.n, .Deadcode: Token support for logout message
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.