function _revisioning_revision_is in Revisioning 6.3
Same name and namespace in other branches
- 8 revisioning_api.inc \_revisioning_revision_is()
- 6.4 revisioning_api.inc \_revisioning_revision_is()
- 7 revisioning_api.inc \_revisioning_revision_is()
Return revision type of the supplied node.
Parameters
&$node: Node object to check
Return value
Revision type
2 calls to _revisioning_revision_is()
- revisioning_condition_revision_is in ./
revisioning.rules.inc - _revisioning_node_info_msg in ./
revisioning_api.inc - Return a string with details about the node that is about to be displayed.
File
- ./
revisioning_api.inc, line 504 - API functions of Revisioning module
Code
function _revisioning_revision_is(&$node) {
if ($node->is_pending) {
return REVISION_PENDING;
}
return $node->is_current && $node->status ? REVISION_CURRENT : REVISION_ARCHIVED;
}