function jammer_generic_confirm_delete_submit in Jammer 7
Same name and namespace in other branches
- 6 jammer_generic.module \jammer_generic_confirm_delete_submit()
Deletes settings that would jam form elements.
File
- ./
jammer_generic.module, line 138 - Remove configured form elements from forms.
Code
function jammer_generic_confirm_delete_submit($form, &$form_state) {
$current_settings = variable_get('jammer_generic_elements', array());
unset($current_settings[$form_state['values']['key']]);
variable_set('jammer_generic_elements', $current_settings);
$form_state['redirect'] = 'admin/config/user-interface/jammer_generic';
}