function workflow_get_workflow_node_by_nid in Workflow 7
Same name and namespace in other branches
- 7.2 workflow.module \workflow_get_workflow_node_by_nid()
Given a node id, find out what it's current state is. Unique (for now).
3 calls to workflow_get_workflow_node_by_nid()
- workflow_access_node_access_records in workflow_access/
workflow_access.module - Implements hook_node_access_records().
- workflow_node_current_state in ./
workflow.module - Get the current state of a given node.
- workflow_update_workflow_node in ./
workflow.module - Given data, insert the node association. @todo: Can we split this in 2? First half for Node API, second half for Node + Field API.
File
- ./
workflow.module, line 930 - Support workflows made up of arbitrary states.
Code
function workflow_get_workflow_node_by_nid($nid) {
$results = db_query('SELECT nid, sid, uid, stamp FROM {workflow_node} WHERE nid = :nid', array(
':nid' => $nid,
));
return $results
->fetchObject();
}