You are here

function rotor_insert in Rotor Banner 6

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

Implementation of hook_insert().

File

./rotor.module, line 402
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, alt_text, url, link_target) VALUES (%d, '%s', '%s', '%s', '%s')", $node->nid, $node->rotor_image, $node->alt_text, $node->url, $node->link_target);
}