You are here

function imce_admin_form_validate in IMCE 6.2

Same name and namespace in other branches
  1. 7 inc/imce.admin.inc \imce_admin_form_validate()

Validate admin form.

File

inc/imce.admin.inc, line 149
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 (imce_admin_check_wildcard_upload(DRUPAL_ANONYMOUS_RID, $roles)) {
    form_error($form['roles'][DRUPAL_ANONYMOUS_RID]['pid'], t('Anonymous user role can not have a configuration profile with unrestricted file extensions.'));
  }
}