Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | Redirect-after-logout-token-for-message-2772445-2-7.x-1.1.patch | 658 bytes | aditya.n |
redirect_after_logout.zip | 9.33 KB | DedSec |
Comments
Comment #2
aditya.n CreditAttribution: aditya.n at gai Technologies Pvt Ltd commentedApplying patch with changes :)
Comment #3
Prashant.cAbove patch tested and seems to be working fine.
Thanks for your contribution @.Deadcode and @aditya.n.