function flash_view in Flash Node 5
Implementation of hook_view
File
- ./
flash.module, line 499
Code
function flash_view($node, $teaser, $page = 0) {
// run through the filters before adding in code, so that <script> is not intercepted
$node = node_prepare($node, $teaser);
// call flash_display to produce HTML
$flash = flash_display($node->flash);
// if we're not in body only mode add flash if a teaser was requested
if ($node->flash['display'] != 2 && $teaser) {
$node->content['body']['#value'] = $flash . $node->content['body']['#value'];
}
// if we're not in teaser only mode add flash if the body was requested
if ($node->flash['display'] != 1 && !$teaser) {
$node->content['body']['#value'] = $flash . $node->content['body']['#value'];
}
return $node;
}