Clear Drupal error message

119 views
asked May 25, 2012 in General by Donald (2,780 points)
How can I clear Drupal error messages? Which function should be called in my form  so that the error message will be cleared automatically? Can anyone please advice?

Thank you

2 Answers

0 like 0 dislike
answered May 25, 2012 by lionhost (4,060 points)
hi

You’ll find your answer here http://drupal.org/node/214389
0 like 0 dislike
answered May 25, 2012 by TopNet (10,360 points)
The easiest way is to use drupal_get_messages();
...