You are here

function imce_profile_delete_submit in IMCE 6

Same name and namespace in other branches
  1. 6.2 inc/imce.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/admin.inc
Profile delete form

File

inc/admin.inc, line 495

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';
}