You are here

function party_activity_delete_form in Party 8.2

Same name and namespace in other branches
  1. 7 modules/party_activity/party_activity.admin.inc \party_activity_delete_form()

Form callback: confirmation form for deleting a activity.

Parameters

$activity: The party_activity to delete

See also

confirm_form()

1 string reference to 'party_activity_delete_form'
party_activity_delete_form_wrapper in modules/party_activity/party_activity.admin.inc
Form callback wrapper: delete a party activity.

File

modules/party_activity/party_activity.admin.inc, line 272
Party Activity editing UI

Code

function party_activity_delete_form($form, &$form_state, $activity) {
  $form_state['activity'] = $activity;
  $form['#submit'][] = 'party_activity_delete_form_submit';
  $form = confirm_form($form, t('Are you sure you want to delete activity %title?', array(
    '%title' => $activity->title,
  )), 'admin/community/activities/activity', '<p>' . t('This action cannot be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');
  return $form;
}