system_actions_delete_form_submit

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

Process system_actions_delete form submissions.

Post-deletion operations for action deletion.

File

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

Code

function system_actions_delete_form_submit($form, &$form_state) {
  $aid = $form_state['values']['aid'];
  $action = actions_load($aid);
  actions_delete($aid);
  watchdog('user', 'Deleted action %aid (%action)', array('%aid' => $aid, '%action' => $action->description));
  drupal_set_message(t('Action %action was deleted', array('%action' => $action->description)));
  $form_state['redirect'] = 'admin/settings/actions/manage';
}
Login or register to post comments