function rules_condition_entity_is_of_type_assertions in Rules 7.2
Assert the selected entity type.
Related topics
File
- modules/
entity.rules.inc, line 507 - General entity related rules integration.
Code
function rules_condition_entity_is_of_type_assertions($element) {
if ($type = $element->settings['type']) {
return array(
'entity' => array(
'type' => $type,
),
);
}
}