function message_example_node_view_teaser in Message 6
Return the teaser of a node.
Parameters
$nid: The node ID.
1 string reference to 'message_example_node_view_teaser'
- message_example_nodeapi in modules/
message_example/ message_example.module - Implementation of hook_nodeapi().
File
- modules/
message_example/ message_example.module, line 160
Code
function message_example_node_view_teaser($nid) {
$output = '';
if ($node = node_load($nid)) {
$output = '<div class="message-node-teaser">' . node_view($node, TRUE) . '</div>';
}
return $output;
}