function rules_condition_entity_is_new in Rules 7.2
Condition: Entity is new.
Related topics
1 string reference to 'rules_condition_entity_is_new'
- 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 151 - Contains rules integration for entities needed during evaluation.
Code
function rules_condition_entity_is_new($wrapper, $settings, $state, $element) {
return !$wrapper
->getIdentifier() || !empty($wrapper
->value()->is_new);
}