You are here

function revisioning_revision_is_current in Revisioning 7

Same name and namespace in other branches
  1. 8 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

4 calls to revisioning_revision_is_current()
revisioning_node_access_records_alter in ./revisioning.module
Implements hook_node_access_records_alter().
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;
}