function imce_admin_form_validate in IMCE 7
Same name and namespace in other branches
- 6.2 inc/imce.admin.inc \imce_admin_form_validate()
Validate admin form.
File
- inc/
imce.admin.inc, line 219 - Serves administration pages of IMCE.
Code
function imce_admin_form_validate($form, &$form_state) {
$roles = $form_state['values']['roles'];
// Check anonymous profile. Do not allow wildcard upload.
if ($key = imce_admin_check_wildcard_upload(DRUPAL_ANONYMOUS_RID, $roles)) {
form_error($form['roles'][DRUPAL_ANONYMOUS_RID][$key], t('Anonymous user role can not have a configuration profile with unrestricted file extensions.'));
}
}