title: In Drupal 7, is there a way to pop form errors off the display stack and/or prevent their display?
body: <p>I have a Drupal 7 form which I'm allowing the user to submit via AJAX. If the user does not fill out required fields, or enters invalid information, I can return that and alert the user via the <code>form_get_errors()</code> function. The problem is that these values are still on the "display stack" (not the correct term, I'm sure) - when the user refreshes the page, or navigates to another one, these previous errors are displayed.</p>
  
  <p>Is there a way to set these errors not to display once I've grabbed them with <code>form_get_errors()</code>?</p>
  
  <p>EDIT: One option I have would be to remove all validation functions, then manually do validation in my ajax submit handler...but I feel like that defeats the purpose of this form API. I'd like to use everything built in, but I just want the error messages not to be displayed.</p>