function imce_profile_submit in IMCE 6
Same name and namespace in other branches
- 6.2 inc/imce.admin.inc \imce_profile_submit()
- 7 inc/imce.admin.inc \imce_profile_submit()
Profile form submit.
1 string reference to 'imce_profile_submit'
- imce_profile_form in inc/
admin.inc - Profile form.
File
- inc/
admin.inc, line 281
Code
function imce_profile_submit($form, &$form_state) {
$profile = $form_state['values']['profile'];
$pid = $form_state['values']['pid'];
$message = $pid > 0 ? t('The changes have been saved.') : t('Profile has been added.');
//unset empty fields of directories and thumbnails.
imce_clean_profile_fields($profile);
//save profile.
$pid = imce_update_profiles($pid, $profile);
drupal_set_message($message);
$form_state['redirect'] = 'admin/settings/imce/profile/edit/' . $pid;
}