system_actions_delete_form_submit
modules/system/system.module, строка 1533
- Версии
- 6
system_actions_delete_form_submit($form, &$form_state)
Process system_actions_delete form submissions.
Post-deletion operations for action deletion.
Код
<?php
function system_actions_delete_form_submit($form, &$form_state) {
$aid = $form_state['values']['aid'];
$action = actions_load($aid);
actions_delete($aid);
$description = check_plain($action->description);
watchdog('user', 'Deleted action %aid (%action)', array('%aid' => $aid, '%action' => $description));
drupal_set_message(t('Action %action was deleted', array('%action' => $description)));
$form_state['redirect'] = 'admin/settings/actions/manage';
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии