You are here

function rotor_view in Rotor Banner 6

Same name and namespace in other branches
  1. 5.7 rotor.module \rotor_view()
  2. 5 rotor.module \rotor_view()

Implementation of hook_view().

File

./rotor.module, line 442
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;
}