function rules_condition_entity_is_of_bundle_process in Rules 7.2
Process callback for the condition entity_is_of_bundle.
Related topics
File
- modules/
entity.rules.inc, line 528 - General entity related rules integration.
Code
function rules_condition_entity_is_of_bundle_process(RulesAbstractPlugin $element) {
// If we know the entity type, auto-populate it.
if (($info = $element
->getArgumentInfo('entity')) && $info['type'] != 'entity') {
$element->settings['type'] = $info['type'];
}
}