You are here

function node_expire_set_expired in Node expire 6.2

Same name and namespace in other branches
  1. 8 node_expire.module \node_expire_set_expired()
  2. 7 node_expire.module \node_expire_set_expired()

Parameters

$nids: node ID that should set the expired flag.

1 call to node_expire_set_expired()
node_expire_cron in ./node_expire.module
Implementation of hook_cron().

File

./node_expire.module, line 114

Code

function node_expire_set_expired($nid) {
  db_query("UPDATE {node_expire} SET expired = '1', lastnotify = '" . time() . "' WHERE nid = '" . $nid . "' AND (lastnotify = '0' || expired != '1')");
}