function RulesNodeConditionType::execute

Executes the condition.

File

modules/node.eval.inc, line 56

Class

RulesNodeConditionType
Condition: Check for selected content types.

Code

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