function imce_profile_delete_form in IMCE 6.2
Same name and namespace in other branches
- 6 inc/admin.inc \imce_profile_delete_form()
- 7 inc/imce.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 519 - Serves administration pages of IMCE.
Code
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');
}