You are here

function imce_admin_submit in IMCE 6.2

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

Submit admin form.

1 string reference to 'imce_admin_submit'
imce_admin_form in inc/imce.admin.inc
Admin form.

File

inc/imce.admin.inc, line 160
Serves administration pages of IMCE.

Code

function imce_admin_submit($form, &$form_state) {
  $roles = $form_state['values']['roles'];
  if (count($roles) > 3) {
    uasort($roles, 'imce_rolesort');
  }
  variable_set('imce_roles_profiles', $roles);
  variable_set('imce_settings_textarea', $form_state['values']['textarea']);
  variable_set('imce_settings_absurls', $form_state['values']['absurls']);
  variable_set('imce_settings_replace', $form_state['values']['replace']);
  variable_set('imce_settings_thumb_method', $form_state['values']['thumb_method']);
  if (isset($form_state['values']['disable_private'])) {
    variable_set('imce_settings_disable_private', $form_state['values']['disable_private']);
  }
  drupal_set_message(t('Changes have been saved.'));
}