You are here

function jammer_generic_confirm_delete_submit in Jammer 6

Same name and namespace in other branches
  1. 7 jammer_generic.module \jammer_generic_confirm_delete_submit()

Deletes settings that would jam form elements.

File

./jammer_generic.module, line 135
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/settings/jammer/generic';
}