You are here

function scheduler_condition_unpublishing_is_enabled in Scheduler 7

Determines whether scheduled unpublishing is enabled for this node type.

Parameters

object $node: The node to check.

Return value

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

File

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

Code

function scheduler_condition_unpublishing_is_enabled($node) {
  return variable_get('scheduler_unpublish_enable_' . $node->type, 0) == 1;
}