function imce_admin_submit in IMCE 6
Same name and namespace in other branches
- 6.2 inc/imce.admin.inc \imce_admin_submit()
- 7 inc/imce.admin.inc \imce_admin_submit()
Submit admin form.
1 string reference to 'imce_admin_submit'
- imce_admin_form in inc/
admin.inc - Admin form.
File
- inc/
admin.inc, line 136
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.'));
}