function action_admin_delete_form

Creates the form for confirmation of deleting an action.

See also

action_admin_delete_form_submit()

Related topics

1 string reference to 'action_admin_delete_form'
action_menu in drupal/core/modules/action/action.module
Implements hook_menu().

File

drupal/core/modules/action/action.admin.inc, line 252
Admin page callbacks for the Action module.

Code

function action_admin_delete_form($form, &$form_state, $action) {
  $form['aid'] = array(
    '#type' => 'hidden',
    '#value' => $action->aid,
  );
  return confirm_form($form, t('Are you sure you want to delete the action %action?', array(
    '%action' => $action->label,
  )), 'admin/config/system/actions/manage', t('This cannot be undone.'), t('Delete'), t('Cancel'));
}