function SearchApiViewsHandlerArgumentLocationGeofilt::options_validate in Search API Location 7.2
Validate the options form.
Overrides views_handler_argument::options_validate
File
- search_api_location_views/
handler_argument_location.inc, line 99 - Provides the views argument handler for location fields.
Class
- SearchApiViewsHandlerArgumentLocationGeofilt
- Handler class for views location geofilt.
Code
function options_validate(&$form, &$form_state) {
if (!is_numeric($form_state['values']['options']['radius']) || $form_state['values']['options']['radius'] <= 0) {
form_error($form['radius'], t('You have to enter a numeric radius greater than 0.'));
}
parent::options_validate($form, $form_state);
}