function rules_get_entity_metadata_wrapper_all_properties

Helper function that retrieves a metadata wrapper with all properties.

Note that without this helper, bundle-specific properties aren't added.

2 calls to rules_get_entity_metadata_wrapper_all_properties()
rules_action_entity_query_info_alter in modules/entity.eval.inc
Info alteration callback for the entity query action.
rules_action_entity_query_value_options_list in modules/entity.rules.inc
Returns the options list specified for the chosen property.

File

./rules.module, line 1770

Code

function rules_get_entity_metadata_wrapper_all_properties(RulesAbstractPlugin $element) {
    return entity_metadata_wrapper($element->settings['type'], NULL, array(
        'property info alter' => 'rules_entity_metadata_wrapper_all_properties_callback',
    ));
}