function certificate_field_grouping_add_form_submit in Certificate 3.x
Same name and namespace in other branches
- 8.3 certificate.admin.inc \certificate_field_grouping_add_form_submit()
- 6.2 certificate.admin.inc \certificate_field_grouping_add_form_submit()
- 6 certificate.admin.inc \certificate_field_grouping_add_form_submit()
- 7.3 certificate.admin.inc \certificate_field_grouping_add_form_submit()
- 7.2 certificate.admin.inc \certificate_field_grouping_add_form_submit()
Form to add another field group.
File
- ./
certificate.admin.inc, line 328 - Administrative pages for Certificate module.
Code
function certificate_field_grouping_add_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());
$fieldgroups[$fieldgroup_name] = $fieldgroup_title;
variable_set('certificate_field_groups', $fieldgroups);
drupal_set_message(t('Fieldgroup %f created.', array(
'%f' => $fieldgroup_name,
)));
drupal_goto('admin/structure/certificates/mapping/groups');
}