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