function rotor_view in Rotor Banner 5
Same name and namespace in other branches
- 5.7 rotor.module \rotor_view()
- 6 rotor.module \rotor_view()
Implementation of hook_view().
File
- ./
rotor.module, line 446 - A rotor banner consists in a set of images that will be changing. This module is made using jquery.
Code
function rotor_view($node, $teaser = FALSE, $page = FALSE) {
$node = node_prepare($node, $teaser);
if ($node->rotor_image) {
$node->content['body']['#value'] = theme('rotor_image', $node);
}
return $node;
}