Hi all,
I want to display the drupal set message after redirecting the users to another drupal page. But for me redirects is working fine, but not able to display the drupal_set_message.
Below is the code for the reference
if(($db_mail != '') && ($db_status == 0))
{
$roleid = db_update('users')
->fields(array(
'status' => 1,
))
->condition('mail', $db_mail, '=')
->execute();
drupal_goto('user/login');
drupal_set_message("Your account has been activated, You can login in to Nexumus site now.");
}
I have swapped the lines by kept the drupal_set_message first and drupal_goto function on next line, still not working. please guide me on this.
Thanks
Rajguru
Comments
Comment #1
hass CreditAttribution: hass commentedThis sounds not like a feature of this module.