function shib_auth_new_rule_validate in Shibboleth Authentication 6.4
Same name and namespace in other branches
- 7.4 shib_auth_roles_forms.inc \shib_auth_new_rule_validate()
Validates a new rule
Parameters
$form - the identifier of the form, which we have just received:
$form_state - the state of the form, which we have just received, including all of the variables:
File
- ./
shib_auth_roles_forms.inc, line 188 - 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'));
}
}