function imce_profile_delete_form in IMCE 6
Same name and namespace in other branches
- 6.2 inc/imce.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/
admin.inc - Add-Edit-Delete profiles.
File
- inc/
admin.inc, line 476
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');
}