You are here

function workflow_insert_workflow_scheduled_transition in Workflow 7

Same name and namespace in other branches
  1. 7.2 workflow.deprecated.inc \workflow_insert_workflow_scheduled_transition()

Insert a new scheduled transition. Only one transition at a time (for now). @deprecated: workflow_insert_workflow_scheduled_transition() --> WorkflowScheduledTransition::save()

File

./workflow.deprecated.inc, line 257
Contains contains per-class functions, that are deprecated. Usage: The new code can be tested, by removing this file-include from workflow.module.

Code

function workflow_insert_workflow_scheduled_transition($data) {
  $data = (object) $data;
  workflow_delete_workflow_scheduled_transition_by_nid($data->nid);
  drupal_write_record('workflow_scheduled_transition', $data);
}