function rules_ui_delete_element_submit in Rules 7.2
Rule config deletion form submit callback.
File
- ui/
ui.forms.inc, line 381 - Rules User Interface forms.
Code
function rules_ui_delete_element_submit($form, &$form_state) {
$rules_config = $form_state['rules_config'];
$rules_config
->save();
if (empty($form_state['redirect'])) {
$form_state['redirect'] = RulesPluginUI::defaultRedirect($form_state['element_parent']);
}
}