function rotor_view in Rotor Banner 5.7
Same name and namespace in other branches
- 5 rotor.module \rotor_view()
- 6 rotor.module \rotor_view()
Node view hook
File
- ./
rotor.module, line 262 - 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('image', file_create_url($node->rotor_image), '', '', NULL, FALSE);
}
return $node;
}