You are here

function imce_profile_delete_form in IMCE 7

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

Profile delete form.

1 string reference to 'imce_profile_delete_form'
imce_profile_operations in inc/imce.admin.inc
Add-Edit-Delete profiles.

File

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

Code

function imce_profile_delete_form($form, &$form_state, $pid) {
  if ($pid > 1 && ($profile = imce_load_profile($pid))) {
    $form['#submit'][] = 'imce_profile_delete_submit';
    $form['pid'] = array(
      '#type' => 'hidden',
      '#value' => $pid,
    );
    return confirm_form($form, t('Are you sure you want to delete the profile %name?', array(
      '%name' => $profile['name'],
    )), 'admin/config/media/imce', '', t('Delete'), t('Cancel'));
  }
  drupal_goto('admin/config/media/imce');
}