You are here

function flag_delete_confirm in Flag 7.3

Same name and namespace in other branches
  1. 5 includes/flag.admin.inc \flag_delete_confirm()
  2. 6.2 includes/flag.admin.inc \flag_delete_confirm()
  3. 6 includes/flag.admin.inc \flag_delete_confirm()
  4. 7.2 includes/flag.admin.inc \flag_delete_confirm()

Delete flag page.

1 string reference to 'flag_delete_confirm'
flag_menu in ./flag.module
Implements hook_menu().

File

includes/flag.admin.inc, line 770
Contains administrative pages for creating, editing, and deleting flags.

Code

function flag_delete_confirm($form, &$form_state, $flag) {
  $form['#flag'] = $flag;
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $flag
      ->get_title(),
  )), !empty($_GET['destination']) ? $_GET['destination'] : FLAG_ADMIN_PATH, isset($flag->module) ? t('This flag is provided by the %module module. It will lose any customizations and be disabled.', array(
    '%module' => $flag->module,
  )) : t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}