function shib_auth_new_rule_validate in Shibboleth Authentication 7.4
Same name and namespace in other branches
- 6.4 shib_auth_roles_forms.inc \shib_auth_new_rule_validate()
Validates a new rule form.
File
- ./
shib_auth_roles_forms.inc, line 229 - Roles manager forms.
Code
function shib_auth_new_rule_validate($form, &$form_state) {
if (empty($form_state['values']['shib_auth_new_attrib'])) {
form_set_error('shib_auth_new_attrib', t('This element must not be empty'));
}
if (empty($form_state['values']['shib_auth_new_regexp'])) {
form_set_error('shib_auth_new_regexp', t('This element must not be empty'));
}
}