function node_tools_revision_is_current in Module Grants 6.4
Same name and namespace in other branches
- 6.3 node_tools/node_tools.module \node_tools_revision_is_current()
Return whether the currenly loaded revision is the current one.
Parameters
$node:
Return value
TRUE if the currently loaded node revision is the current revision
1 call to node_tools_revision_is_current()
- node_tools_nodeapi in node_tools/
node_tools.module - Implementation of hook_nodeapi().
File
- node_tools/
node_tools.module, line 63 - Generic reusable functions involving node objects.
Code
function node_tools_revision_is_current($node) {
return !is_null($node) && $node->current_revision_id == $node->vid;
}