You are here

function boxes_delete_confirm in Boxes 7.2

Menu callback -- ask for confirmation of box deletion

1 string reference to 'boxes_delete_confirm'
boxes_menu in ./boxes.module
Implements hook_menu().

File

includes/boxes.pages.inc, line 361
Box Functions

Code

function boxes_delete_confirm($form, &$form_state, $box) {
  $form['#box'] = $box;
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $box
      ->label(),
  )), $box
    ->viewUrl(), t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}