function certificate_field_grouping_delete_form_submit in Certificate 7.3
Same name and namespace in other branches
- 8.3 certificate.admin.inc \certificate_field_grouping_delete_form_submit()
- 6.2 certificate.admin.inc \certificate_field_grouping_delete_form_submit()
- 6 certificate.admin.inc \certificate_field_grouping_delete_form_submit()
- 7.2 certificate.admin.inc \certificate_field_grouping_delete_form_submit()
- 3.x certificate.admin.inc \certificate_field_grouping_delete_form_submit()
Fieldgroup deletion.
File
- ./
certificate.admin.inc, line 342 - Administrative pages for Certificate module.
Code
function certificate_field_grouping_delete_form_submit(&$form, &$form_state) {
$fieldgroup_name = $form_state['values']['fieldgroup_name'];
$fieldgroup_title = $form_state['values']['fieldgroup_title'];
$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/structure/certificates/mapping/groups');
}