function rules_entity_metadata_wrapper_all_properties_callback

Callback that returns a metadata wrapper with all properties.

1 string reference to 'rules_entity_metadata_wrapper_all_properties_callback'
rules_get_entity_metadata_wrapper_all_properties in ./rules.module
Helper function that retrieves a metadata wrapper with all properties.

File

./rules.module, line 1779

Code

function rules_entity_metadata_wrapper_all_properties_callback(EntityMetadataWrapper $wrapper, $property_info) {
    $info = $wrapper->info();
    $properties = entity_get_all_property_info($info['type']);
    $property_info['properties'] += $properties;
    return $property_info;
}