You are here

function node_expire_unset_expired in Node expire 6.2

Same name and namespace in other branches
  1. 8 node_expire.rules.inc \node_expire_unset_expired()
  2. 7.2 node_expire.rules.inc \node_expire_unset_expired()
  3. 7 node_expire.rules.inc \node_expire_unset_expired()

Unset the "Expired" flag on nodes.

Parameters

$nids: Object. The Node object with all node IDs that should unset the expired flag.

File

./node_expire.rules.inc, line 98
Rules module integration.

Code

function node_expire_unset_expired($nids) {
  db_query("UPDATE {node_expire} SET expired = '0', lastnotify = '0' WHERE nid = '" . $nids->nid . "'");
}