Friday, August 26, 2011

SOLVED: how to avoid duplicate drupal error messages?

Intialize the Drupal session array.
$_SESSION['messages']['error'] = array();

After initializing, you need to set the drupal error message. By using this way u can avoid duplicate of drupal error messages.

Example: 
drupal_set_message(t("No Records found!"), 'error');   

No comments:

Post a Comment

Followers