You are here

function rotor_update in Rotor Banner 5.7

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

Hook Update

File

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

Code

function rotor_update($node) {
  db_query("UPDATE {rotor_item} SET file_path = '%s' WHERE nid = %d", $node->rotor_image, $node->nid);
}