function rules_test_get_referenced_entity

Getter callback to get the referenced-entity property.

1 string reference to 'rules_test_get_referenced_entity'
rules_test_entity_property_info_alter in tests/rules_test.module
Implements hook_entity_property_info_alter() to add a property without access.

File

tests/rules_test.module, line 40

Code

function rules_test_get_referenced_entity($node) {
    // For testing purposes we just return the node itself as property value.
    return entity_metadata_wrapper('node', $node);
}