You are here

function certificate_field_grouping_add_form_submit in Certificate 6

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

File

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

Code

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