You are here

public function RulesNodeConditionSticky::execute in Rules 7.2

Executes the condition.

File

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

Class

RulesNodeConditionSticky
Condition: Check if the node is sticky.

Code

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