You are here

function acquia_search_settings_validate in Acquia Search 6

Added validate function for the apachesolr_settings form.

1 string reference to 'acquia_search_settings_validate'
acquia_search_form_apachesolr_settings_alter in ./acquia_search.module
Implementation of hook_form_[form_id]_alter().

File

./acquia_search.module, line 178
Integration between Acquia Drupal and Acquia's hosted solr search service.

Code

function acquia_search_settings_validate(&$form, &$form_state) {
  if (!is_numeric($form_state['values']['acquia_search_request_timeout'])) {
    form_set_error('acquia_search_request_timeout', t('Request timeout must be numeric.'));
  }
  if (!is_numeric($form_state['values']['acquia_search_connect_timeout'])) {
    form_set_error('acquia_search_connect_timeout', t('Connection timeout must be numeric.'));
  }
}