imce_profile_delete_form

Definition

imce_profile_delete_form(&$form_state, $pid)
imce/inc/admin.inc, line 450

Description

Profile delete form

Code

<?php
function imce_profile_delete_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/settings/imce',
      '',
      t('Delete'),
      t('Cancel')
    );
  }
  drupal_goto('admin/settings/imce');
}
?>