janusman
  • Member for 10 years, 6 months
  • Last seen more than 5 years ago
How to set multiple error messages with form_set_error?
Accepted answer
10 votes

I would change the code to issue a single call to form_set_error() per element: $errors = array(); if (strpos($form_state["values"]["body"], "<h1") === true) $error_messages["body"][] = "...

View answer
How can I filter the apachesolr_autocomplete results on a custom search block
0 votes

This seems to be the D.O issue for this: https://www.drupal.org/node/1444038 (enables per-search-page support for autocomplete) along with this... https://www.drupal.org/node/326375 (enables having ...

View answer