You are here

function scheduler_condition_node_is_scheduled_for_unpublishing in Scheduler 7

Determines whether a node is scheduled for unpublishing.

Parameters

object $node: The node to check.

Return value

bool TRUE if the node is scheduled for unpublishing, FALSE if not.

File

./scheduler.rules.inc, line 285
Scheduler rules functions.

Code

function scheduler_condition_node_is_scheduled_for_unpublishing($node) {
  return !empty($node->unpublish_on);
}