You are here

function scheduler_condition_node_is_scheduled_for_publishing in Scheduler 7

Determines whether a node is scheduled for publishing.

Parameters

object $node: The node to check.

Return value

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

File

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

Code

function scheduler_condition_node_is_scheduled_for_publishing($node) {
  return !empty($node->publish_on);
}