function imce_admin_submit in IMCE 7
Same name and namespace in other branches
- 6.2 inc/imce.admin.inc \imce_admin_submit()
- 6 inc/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 230 - 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_sort', $form_state['values']['sort']);
variable_set('imce_settings_thumb_method', $form_state['values']['thumb_method']);
variable_set('imce_settings_disable_private', $form_state['values']['disable_private']);
variable_set('imce_settings_admin_theme', $form_state['values']['admin_theme']);
variable_set('imce_settings_menu_link', $form_state['values']['imce_link']);
variable_set('imce_disable_image_info', $form_state['values']['image_metadata']);
drupal_set_message(t('Changes have been saved.'));
}