function rules_admin_item_form_revert_submit in Rules 6
File
- rules_admin/
rules_admin.sets.inc, line 90
Code
function rules_admin_item_form_revert_submit($form, &$form_state) {
rules_item_delete($form_state['item_type'], $form_state['item']['name']);
rules_clear_cache();
drupal_set_message(t("%label has been reverted.", array(
'%label' => rules_get_element_label($form_state['item']),
)));
$form_state['redirect'] = RULES_ADMIN_PATH;
}