function system_actions_delete_form_submit

system_actions_delete_form_submit($form, &$form_state)

Process system_actions_delete form submissions.

Post-deletion operations for action deletion.

File

modules/system/system.admin.inc, line 3207
Admin page callbacks for the system module.

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->label));
  drupal_set_message(t('Action %action was deleted', array('%action' => $action->label)));
  $form_state['redirect'] = 'admin/config/system/actions/manage';
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.admin.inc/function/system_actions_delete_form_submit/7.x