You are here

function activity_actions_delete_form in Activity 7

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

Create the form for confirmation of deleting an activity action.

See also

activity_actions_delete_form_submit()

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

File

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

Code

function activity_actions_delete_form($form, &$form_state, $action) {
  $form['aid'] = array(
    '#type' => 'value',
    '#value' => $action->aid,
  );
  $form['delete'] = array(
    '#type' => 'checkbox',
    '#title' => t('Delete all activities'),
    '#description' => t('Delete all activities associated with this template'),
    '#default_value' => TRUE,
  );
  return confirm_form($form, t('Are you sure you want to delete the action %action?', array(
    '%action' => $action->label,
  )), 'admin/structure/activity', t('This cannot be undone.'), t('Delete'), t('Cancel'));
}