public function SearchApiSolrService::configurationFormValidate in Search API Solr 7
Implements SearchApiServiceInterface::__construct().
Does nothing by default.
Overrides SearchApiAbstractService::configurationFormValidate
File
- includes/
service.inc, line 333
Class
- SearchApiSolrService
- Search service class using Solr server.
Code
public function configurationFormValidate(array $form, array &$values, array &$form_state) {
if (isset($values['port']) && (!is_numeric($values['port']) || $values['port'] < 0 || $values['port'] > 65535)) {
form_error($form['port'], t('The port has to be an integer between 0 and 65535.'));
}
}