You are here

function activity_delete_confirm in Activity 7

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

Menu callback -- ask for confirmation of activity deletion

1 string reference to 'activity_delete_confirm'
activity_menu in ./activity.module
Implements hook_menu().

File

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

Code

function activity_delete_confirm($form, $form_state, $aid) {
  $form['aid'] = array(
    '#type' => 'value',
    '#value' => $aid,
  );
  return confirm_form($form, t('Are you sure you want to delete this activity?'), $_GET['destination'], t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}