function workflow_get_workflow_node_by_sid in Workflow 7
Same name and namespace in other branches
- 7.2 workflow.module \workflow_get_workflow_node_by_sid()
Given a sid, find out the nodes associated.
3 calls to workflow_get_workflow_node_by_sid()
- WorkflowState::deactivate in includes/
Entity/ WorkflowState.php - Deactivate a Workflow State, moving existing nodes to a given State.
- workflow_access_form_submit in workflow_access/
workflow_access.module - Store permission settings for workflow states.
- workflow_admin_ui_overview_form in workflow_admin_ui/
workflow_admin_ui.pages.inc - Menu callback. Create the main workflow page, which gives an overview of workflows and workflow states. Replaced by http://drupal.org/node/1367530.
File
- ./
workflow.module, line 938 - Support workflows made up of arbitrary states.
Code
function workflow_get_workflow_node_by_sid($sid) {
$results = db_query('SELECT nid, sid, uid, stamp FROM {workflow_node} WHERE sid = :sid', array(
':sid' => $sid,
));
return $results
->fetchAll();
}