You are here

public function RulesNodeConditionPublished::execute in Rules 7.2

Executes the condition.

File

modules/node.eval.inc, line 87
Contains rules integration for the node module needed during evaluation.

Class

RulesNodeConditionPublished
Condition: Check if the node is published.

Code

public function execute($node) {
  return $node->status == 1;
}