You are here

function document_view in Document 6

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

Implementation of hook_view().

File

./document.module, line 398

Code

function document_view($node, $teaser = FALSE, $page = FALSE) {
  $node = node_prepare($node, $teaser);
  $node->content['document'] = array(
    '#value' => theme('document_info', $node),
    '#weight' => -5,
  );
  return $node;
}