You are here

function oa_wizard_entity_delete_form in Open Atrium Wizard 7.2

Menu callback -- ask for confirmation of node deletion

1 string reference to 'oa_wizard_entity_delete_form'
oa_wizard_menu in ./oa_wizard.module
Implements hook_menu().

File

./oa_wizard.admin.inc, line 92
Admin form for the Wizards.

Code

function oa_wizard_entity_delete_form($form, &$form_state, $entity) {
  $form_state['entity'] = $entity;
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $entity->title,
  )), 'admin/structure/wizards/view/' . $entity->wizard_id, t('This action cannot be undone. Note that deleting this entity will not delete panes using it, they will exist but display nothing.'), t('Delete'), t('Cancel'));
}