You are here

function certificate_field_grouping_delete_form_submit in Certificate 6

Same name and namespace in other branches
  1. 8.3 certificate.admin.inc \certificate_field_grouping_delete_form_submit()
  2. 6.2 certificate.admin.inc \certificate_field_grouping_delete_form_submit()
  3. 7.3 certificate.admin.inc \certificate_field_grouping_delete_form_submit()
  4. 7.2 certificate.admin.inc \certificate_field_grouping_delete_form_submit()
  5. 3.x certificate.admin.inc \certificate_field_grouping_delete_form_submit()

File

./certificate.admin.inc, line 763
Administrative pages for the module.

Code

function certificate_field_grouping_delete_form_submit(&$form, &$form_state) {
  $fieldgroup_name = $form_state['values']['fieldgroup_name'];
  $fieldgroups = variable_get('certificate_field_groups', array());
  unset($fieldgroups[$fieldgroup_name]);
  variable_set('certificate_field_groups', $fieldgroups);
  drupal_set_message(t('Fieldgroup %f deleted.', array(
    '%f' => $fieldgroup_name,
  )));
  drupal_goto('admin/settings/certificate/mapping/groups');
}