You are here

function rotor_load in Rotor Banner 6

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

Implementation of hook_load().

File

./rotor.module, line 432
A rotor banner consists in a set of images that will be changing. This module is made using jquery.

Code

function rotor_load($node) {
  $additions = db_fetch_object(db_query('SELECT file_path AS rotor_image, alt_text, url, link_target FROM {rotor_item} WHERE nid = %d', $node->nid));
  return $additions;
}