function rules_test_get_referenced_node

Getter callback to get the referenced-node list-property.

1 string reference to 'rules_test_get_referenced_node'
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 48

Code

function rules_test_get_referenced_node($node) {
    // For testing purposes we just return the node itself as property value.
    return array(
        $node->nid,
    );
}