function rules_scheduler_schedule_form_submit

Submit callback to execute the scheduling action.

File

rules_scheduler/rules_scheduler.admin.inc, line 134

Code

function rules_scheduler_schedule_form_submit($form, &$form_state) {
    $action = $form_state['rules_element'];
    $action->execute();
    drupal_set_message(t('Component %label has been scheduled.', array(
        '%label' => rules_config_load($form_state['component'])->label(),
    )));
    $form_state['redirect'] = RULES_SCHEDULER_PATH;
}