You are here

function node_expire_rules_expired_check in Node expire 8

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

Checks if the node has the the "Expired" flag on.

Parameters

object $node: The Node object.

File

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

Code

function node_expire_rules_expired_check($node) {
  return !empty($node->expire) && $node->expire <= REQUEST_TIME && $node->expired == 1;
}