public function SearchApiAcquiaSearchService::configurationFormValidate in Acquia Search for Search API 7
Same name and namespace in other branches
- 7.2 includes/SearchApiAcquiaSearchService.php \SearchApiAcquiaSearchService::configurationFormValidate()
Overrides SearchApiSolrService::configurationFormValidate().
Forces defaults if the override option is unchecked.
Overrides SearchApiSolrService::configurationFormValidate
See also
http://drupal.org/node/1852692
File
- includes/
SearchApiAcquiaSearchService.php, line 180 - Contains SearchApiAcquiaSearchService.
Class
- SearchApiAcquiaSearchService
- Search API service class for Acquia Search.
Code
public function configurationFormValidate(array $form, array &$values, array &$form_state) {
$modified = !empty($form_state['values']['options']['form']['modify_acquia_connection']);
if (!$modified) {
// Set our special overrides if applicable
$this
->setConnectionOptions();
form_set_value($form['host'], $this->options['host'], $form_state);
form_set_value($form['port'], $this->options['port'], $form_state);
form_set_value($form['path'], $this->options['path'], $form_state);
}
parent::configurationFormValidate($form, $values, $form_state);
}