function uuid_node_load in Universally Unique IDentifier 6
Load the UUID information for a node.
Parameters
$node: Node object to load UUID information for.
Return value
Array with UUID information.
1 call to uuid_node_load()
- uuid_nodeapi in ./
uuid.module - Implementation of hook_nodeapi().
File
- ./
uuid.module, line 133 - Main module functions for the uuid module.
Code
function uuid_node_load($node) {
if ($arr = db_fetch_array(db_query('SELECT un.uuid AS uuid, unr.uuid AS revision_uuid FROM {uuid_node} un LEFT JOIN {uuid_node_revisions} unr ON unr.vid=%d WHERE un.nid=%d', $node->vid, $node->nid))) {
return $arr;
}
else {
return array(
'uuid' => FALSE,
'revision_uuid' => FALSE,
);
}
}