You are here

function rules_scheduler_manual_submit in Rules 6

Submit handler for manual scheduling of tasks.

1 string reference to 'rules_scheduler_manual_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 111
Admin form for scheduling

Code

function rules_scheduler_manual_submit($form, &$form_state) {
  rules_scheduler_schedule_task($form_state['values']['ruleset_manual'], $form_state['values']['date'], $form_state['values']['task_identifier']);
  drupal_set_message(t('The rule set %name has been scheduled on %date (GMT).', array(
    '%name' => $form_state['values']['ruleset_manual'],
    '%date' => $form_state['values']['date'],
  )));
}