function certificate_field_grouping_add_form_validate in Certificate 6
Same name and namespace in other branches
- 6.2 certificate.admin.inc \certificate_field_grouping_add_form_validate()
File
- ./
certificate.admin.inc, line 740 - Administrative pages for the module.
Code
function certificate_field_grouping_add_form_validate(&$form, &$form_state) {
$fieldgroup_name = $form_state['values']['fieldgroup_name'];
$fieldgroups = variable_get('certificate_field_groups', array());
if (in_array($fieldgroup_name, array_keys($fieldgroups))) {
form_set_error('fieldgroup_name', 'Duplicate, please choose another name.');
}
}