You are here

function state_flow_schedule_schedule in State Machine 7.2

Same name and namespace in other branches
  1. 7.3 modules/state_flow_schedule/state_flow_schedule.module \state_flow_schedule_schedule()

Add nodes to be published to schedule table

Parameters

int $nid:

int $vid:

int $selected_date:

2 calls to state_flow_schedule_schedule()
state_flow_iib_entity_state_form_submit in modules/state_flow/state_flow.iib.inc
Submit handler for IIB Entity State Form
state_flow_schedule_content in modules/state_flow_schedule/state_flow_schedule.module
Submit callback when scheduling content to be published

File

modules/state_flow_schedule/state_flow_schedule.module, line 144
Module file for state_flow_schedule.

Code

function state_flow_schedule_schedule($nid, $vid, $selected_date) {
  $data = new stdClass();
  $data->nid = $nid;
  $data->vid = $vid;
  $data->date = $selected_date;
  drupal_write_record('state_flow_schedule', $data);
}