You are here

function _jeditable_workflow_load in jEditable inline content editing 7

Same name and namespace in other branches
  1. 6.2 jeditable.module \_jeditable_workflow_load()
  2. 6 jeditable.module \_jeditable_workflow_load()

Load the defaults array for a workflow select

Parameters

object $node: Node object to get workflow states for.

int $sid: The state id of the current state.

Return value

array An array of sid => name, including selected for current selection.

1 call to _jeditable_workflow_load()
_jeditable_ajax_load in ./jeditable.module
Helper function to load a list of select values

File

./jeditable.module, line 738
jeditable.module TODO: Provides integration between Drupal and the jEditable jquery plugin @todo: Datepicker support @todo: Ajax upload support @todo: Radioboxes/checkboxes support @todo: add required handler for date @todo: add compatibility for…

Code

function _jeditable_workflow_load($node, $sid) {
  $defaults = workflow_field_choices($node);

  // set selected value
  $defaults['selected'] = $sid;
  return $defaults;
}