function rotor_insert in Rotor Banner 5
Same name and namespace in other branches
- 5.7 rotor.module \rotor_insert()
- 6 rotor.module \rotor_insert()
Implementation of hook_insert().
File
- ./
rotor.module, line 381 - 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, fid, alt_text, url, link_target) VALUES (%d, %d, '%s', '%s', '%s')", $node->nid, $node->rotor_image, $node->alt_text, $node->url, $node->link_target);
}