function revisioning_revision_is_current in Revisioning 8
Same name and namespace in other branches
- 7 revisioning_api.inc \revisioning_revision_is_current()
Return whether the currenly loaded revision is the current one.
Parameters
object $node: The node object
Return value
bool TRUE if the currently loaded node revision is the current revision
3 calls to revisioning_revision_is_current()
- revisioning_set_node_revision_info in ./
revisioning_api.inc - Set node revision info.
- _revisioning_load_op in ./
revisioning.module - Load a revision.
- _revisioning_publish_latest_revision in ./
revisioning_api.inc - Publish latest revision.
File
- ./
revisioning_api.inc, line 160 - API functions of Revisioning module
Code
function revisioning_revision_is_current($node) {
return isset($node->vid) && isset($node->current_revision_id) && $node->vid == $node->current_revision_id;
}