function _ip_geoloc_plugin_style_remove_association_submit in IP Geolocation Views & Maps 8
Same name and namespace in other branches
- 7 views/ip_geoloc_plugin_style.inc \_ip_geoloc_plugin_style_remove_association_submit()
Submit handler for the "Remove" button.
Decrements the counter and forces a form rebuild.
1 string reference to '_ip_geoloc_plugin_style_remove_association_submit'
- ip_geoloc_plugin_style_bulk_of_form in src/
Plugin/ views/ style/ ip_geoloc_plugin_style.inc - The bulk of the plugin style form.
File
- src/
Plugin/ views/ style/ ip_geoloc_plugin_style.inc, line 289 - ip_geoloc_plugin_style.inc
Code
function _ip_geoloc_plugin_style_remove_association_submit($form, FormStateInterface &$form_state) {
$form_state
->set('num_associations', $form_state
->get('num_associations') - 1);
$form_state
->setRebuild(TRUE);
}