You are here

function ed_classified_update in Classified Ads 5.2

Same name and namespace in other branches
  1. 5 ed_classified.module \ed_classified_update()
  2. 6.2 ed_classified.module \ed_classified_update()
  3. 7.2 ed_classified.module \ed_classified_update()

Implementation of hook_update().

File

./ed_classified.module, line 948
Simple text-based classified ads module. Michael Curry, Exodus Development, Inc. exodusdev@gmail.com for more information, please visit http://exodusdev.com/drupal/modules/classified.module Copyright (c) 2006, 2007 Exodus Development, Inc. All Rights…

Code

function ed_classified_update($node) {
  if ($node->revision) {
    ed_classified_insert($node);
  }
  else {
    db_query("UPDATE {edi_classified_nodes} SET expires_on='%d' WHERE vid = %d", $node->expires_on, $node->vid);
  }
}