You are here

function party_activity_delete_form_submit in Party 7

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

Submit callback for activity_delete_form

1 string reference to 'party_activity_delete_form_submit'
party_activity_delete_form in modules/party_activity/party_activity.admin.inc
Form callback: confirmation form for deleting a activity.

File

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

Code

function party_activity_delete_form_submit($form, &$form_state) {
  $activity = $form_state['activity'];
  party_activity_delete($activity);
  drupal_set_message(t('The activity %title has been deleted.', array(
    '%title' => $activity->title,
  )));
  watchdog('activity', 'Deleted activity %title.', array(
    '%title' => $activity->title,
  ));
  $form_state['redirect'] = 'admin/community/activities';
}