how can I show users success/error messages without creating a node for it?
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
drupal_set_message($msg, $type = 'status');lets you set a message, it will be displayed automatically on the next (or current) page the user visits.The optional second argument lets you choose between an informational message (
status), awarning(usually yellow) or anerror(red).See the docs: http://api.drupal.org/api/function/drupal_set_message/6