node_example_view

Versions
4.6 – 4.7
node_example_view(&$node, $teaser = FALSE, $page = FALSE)
5 – 7
node_example_view($node, $teaser = FALSE, $page = FALSE)

Implementation of hook_view().

This is a typical implementation that simply runs the node text through the output filters.

Code

developer/examples/node_example.module, line 218

<?php
function node_example_view(&$node, $teaser = FALSE, $page = FALSE) {
  $order_info = theme('node_example_order_info', $node);
  $node->body .= $order_info;
  $node->teaser .= $order_info;
  $node = node_prepare($node, $teaser);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.