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