You are here

function activity_delete_confirm_submit in Activity 7

Same name and namespace in other branches
  1. 6.2 activity.admin.inc \activity_delete_confirm_submit()

Execute activity deletion

File

./activity.admin.inc, line 374
activity.admin.inc Contains administrative forms for activity.module

Code

function activity_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    activity_delete(array(
      $form_state['values']['aid'],
    ));
  }
  $form_state['redirect'] = '<front>';
}