function RulesNodeConditionPromoted::execute

Executes the condition.

File

modules/node.eval.inc, line 135

Class

RulesNodeConditionPromoted
Condition: Check if the node is promoted to the frontpage.

Code

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