You are here

function imce_profile_delete_submit in IMCE 6.2

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

Profile delete form submit

1 string reference to 'imce_profile_delete_submit'
imce_profile_delete_form in inc/imce.admin.inc
Profile delete form

File

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

Code

function imce_profile_delete_submit($form, &$form_state) {
  imce_update_profiles($form_state['values']['pid'], NULL);
  drupal_set_message(t('Profile has been deleted.'));
  $form_state['redirect'] = 'admin/settings/imce';
}