You are here

function rules_scheduler_delete_submit in Rules 6

Submit handler for deletion/cancellation of future scheduled tasks.

1 string reference to 'rules_scheduler_delete_submit'
rules_scheduler_form in rules_scheduler/rules_scheduler.admin.inc
Builds the scheduling page with a form for manual scheduling and deletion of tasks.

File

rules_scheduler/rules_scheduler.admin.inc, line 119
Admin form for scheduling

Code

function rules_scheduler_delete_submit($form, &$form_state) {
  module_load_include('inc', 'rules_scheduler', 'rules_scheduler.rules');
  rules_scheduler_action_delete(NULL, $form_state['values']['ruleset_delete']);
  drupal_set_message(t('All tasks associated with %ruleset have been deleted.', array(
    '%ruleset' => $form_state['values']['ruleset_delete'],
  )));
}