You are here

function add_to_head_delete_profile_confirm in Add To Head 7

Same name and namespace in other branches
  1. 6 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
Implements hook_menu().

File

./add_to_head.admin.inc, line 220
This file contains all the admin-related callbacks

Code

function add_to_head_delete_profile_confirm($form, &$form_state, $profile) {
  $form['#profile'] = $profile;
  return confirm_form($form, t('Are you sure you want to delete the profile %name', array(
    '%name' => $profile['name'],
  )), 'admin/config/development/add-to-head', t('This cannot be undone'), t('Delete'), t('Cancel'));
}