You are here

function rotor_insert in Rotor Banner 5.7

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

Hook Insert

File

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

Code

function rotor_insert($node) {
  db_query("INSERT INTO {rotor_item} (nid, file_path) VALUES (%d, '%s')", $node->nid, $node->rotor_image);
}