You are here

public function RulesNodeConditionType::execute in Rules 7.2

Executes the condition.

File

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

Class

RulesNodeConditionType
Condition: Check for selected content types.

Code

public function execute($node, $types) {
  return in_array($node->type, $types);
}