Love the module! Just wanted to mention a possible change.
After signing in, the message says: "Login Successful". Well, I tweaked the code a bit to where, on my site, it now says: "Welcome, username". for example, on my site, when I login it now says: "Welcome, Chris". It adds that little personal touch.
Anyway, I modded the drupal_message in logintoboggan.module to where it's now:
{
drupal_set_message(t(
- 'Welcome, %username.', array('%username' => $user->name))
- ); }
The underlined is what I added. It works perfectly, so I thought maybe it something you could change in the next update, especially since it's something so simple, but adds that personal touch. I attached a text file of the modded logintoboggan.module.
Thanks for the work you've done and thanks for giving us an awesome module!
| Comment | File | Size | Author |
|---|---|---|---|
| logintoboggan.txt | 53.67 KB | sgprs |
Comments
Comment #1
hunmonk commentedthis should really be properly themed instead.
i've committed theme_lt_login_successful_message($account) to 6.x-1.x-dev and HEAD, so now you can override that theme function in your site's theme with whatever you like. $account is a fully loaded user object that the theme function can use to display name, etc.