You are here

function acquia_search_environment_edit_form_validate in Acquia Search 6.3

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

File

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

Code

function acquia_search_environment_edit_form_validate($form, &$form_state) {
  if ($form_state['values']['env_id'] == ACQUIA_SEARCH_ENVIRONMENT_ID) {

    // make sure that the environment parameters have not been changed
    $form_state['values'] = array_merge($form_state['values'], acquia_search_get_environment());
  }
}