function rules_upgrade_confirm_clear_form_submit

Submit handler for deleting data.

File

includes/rules.upgrade.inc, line 143

Code

function rules_upgrade_confirm_clear_form_submit($form, &$form_state) {
    db_drop_table('rules_rules');
    db_drop_table('rules_sets');
    db_drop_table('rules_scheduler_d6');
    drupal_set_message(t('Rules 1.x configurations have been deleted.'));
    $form_state['redirect'] = 'admin';
}