function rules_condition_entity_is_of_type_assertions

Assert the selected entity type.

Related topics

File

modules/entity.rules.inc, line 507

Code

function rules_condition_entity_is_of_type_assertions($element) {
    if ($type = $element->settings['type']) {
        return array(
            'entity' => array(
                'type' => $type,
            ),
        );
    }
}