function rules_condition_entity_is_of_bundle

Condition: Entity is of type and bundle.

Related topics

1 string reference to 'rules_condition_entity_is_of_bundle'
rules_entity_condition_info in modules/entity.rules.inc
Implements hook_rules_condition_info() on behalf of the entity module.

File

modules/entity.eval.inc, line 180

Code

function rules_condition_entity_is_of_bundle($wrapper, $type, $bundles) {
    return $wrapper->type() == $type && in_array($wrapper->getBundle(), $bundles);
}