You are here

function document_load in Document 6

Same name and namespace in other branches
  1. 7 document.module \document_load()
  2. 8.x document.module \document_load()

Implementation of hook_load().

File

./document.module, line 390

Code

function document_load($node) {
  $additions = db_fetch_object(db_query('SELECT fid AS document_fid, type AS document_type, author AS document_author, publish_year AS document_year, keywords AS document_keywords, url AS document_url, external AS document_external FROM {document} d WHERE d.vid = %d', $node->vid));
  return $additions;
}