white-space and minimum length validation in custom search
You can use hook_form_alter(&amp;$form, &amp;$form_state, $form_id) and extend your validation process by adding $form['#validate'][] = 'custom_validation()'