function RulesNodeConditionPublished::execute
Executes the condition.
File
-
modules/
node.eval.inc, line 87
Class
- RulesNodeConditionPublished
- Condition: Check if the node is published.
Code
public function execute($node) {
return $node->status == 1;
}