You are here

function party_delete_form in Party 7

Same name and namespace in other branches
  1. 8.2 party.pages.inc \party_delete_form()

Party delete form.

1 string reference to 'party_delete_form'
party_menu in ./party.module
Implements hook_menu().

File

./party.pages.inc, line 180
party.pages.inc

Code

function party_delete_form($form, &$form_state, $party) {
  $form_state['party'] = $party;
  $form = confirm_form($form, t('Are you sure you want to delete party %label (%id)?', array(
    '%label' => $party->label,
    '%id' => $party->pid,
  )), 'admin/community', '<p>' . t('This action cannot be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');
  return $form;
}