node_prepare
Definition
node_prepare($node, $teaser = FALSE)
modules/node.module, line 515
Description
Apply filters to a node in preparation for theming.
Code
<?php
function node_prepare($node, $teaser = FALSE) {
$node->readmore = (strlen($node->teaser) < strlen($node->body));
if ($teaser == FALSE) {
$node->body = check_output($node->body, $node->format);
}
else {
$node->teaser = check_output($node->teaser, $node->format);
}
return $node;
}
?> 