system_actions_delete_form

6 system.module system_actions_delete_form($form_state, $action)
7 system.admin.inc system_actions_delete_form($form, &$form_state, $action)
8 system.admin.inc system_actions_delete_form($form, &$form_state, $action)

Create the form for confirmation of deleting an action.

See also

system_actions_delete_form_submit()

Related topics

1 string reference to 'system_actions_delete_form'

File

modules/system/system.module, line 1609
Configuration system that lets administrators modify the workings of the site.

Code

function system_actions_delete_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->description)), 
    'admin/settings/actions/manage', 
    t('This cannot be undone.'), 
    t('Delete'), t('Cancel')
  );
}
Login or register to post comments