function ip_geoloc_plugin_style_bulk_of_form_validate in IP Geolocation Views & Maps 8
Same name and namespace in other branches
- 7 views/ip_geoloc_plugin_style.inc \ip_geoloc_plugin_style_bulk_of_form_validate()
Validation for ip_geoloc_plugin_style_bulk_of_form().
File
- src/
Plugin/ views/ style/ ip_geoloc_plugin_style.inc, line 265 - ip_geoloc_plugin_style.inc
Code
function ip_geoloc_plugin_style_bulk_of_form_validate(&$form, FormStateInterface &$form_state) {
if ($form_state
->getValue('style_options')['ip_geoloc_views_plugin_latitude'] == '---') {
$form_state
->getValue('style_options')['ip_geoloc_views_plugin_latitude'] = $form_state
->getValue('style_options')['ip_geoloc_views_plugin_latitude_text'];
}
if ($form_state
->getValue('style_options')['ip_geoloc_views_plugin_longitude'] == '---') {
$form_state
->getValue('style_options')['ip_geoloc_views_plugin_longitude'] = $form_state
->getValue('style_options')['ip_geoloc_views_plugin_longitude_text'];
}
}