function add_to_head_delete_profile_confirm in Add To Head 6
Same name and namespace in other branches
- 7 add_to_head.admin.inc \add_to_head_delete_profile_confirm()
Delete confirm form for removing a profile
1 string reference to 'add_to_head_delete_profile_confirm'
- add_to_head_menu in ./
add_to_head.module - Implementation of hook_menu().
File
- ./
add_to_head.admin.inc, line 164 - This file contains all the admin-related callbacks
Code
function add_to_head_delete_profile_confirm(&$form_state, $profile) {
$form = array();
$form['_profile'] = array(
'#type' => 'value',
'#value' => $profile,
);
return confirm_form($form, t('Are you sure you want to delete the profile %name', array(
'%name' => $profile['name'],
)), 'admin/settings/add-to-head', t('This cannot be undone'), t('Delete'), t('Cancel'));
}