You are here

function entity_property_get_list in Entity API 7

Getter callback for getting an array. Makes sure it's numerically indexed.

1 call to entity_property_get_list()
entity_metadata_get_list in includes/entity.property.inc
Deprecated. Do not make use of this function, instead use the new one.

File

includes/entity.property.inc, line 451
Provides API functions around hook_entity_property_info(). Also see entity.info.inc, which cares for providing entity property info for all core entity types.

Code

function entity_property_get_list($data, array $options, $name) {
  return isset($data->{$name}) ? array_values($data->{$name}) : array();
}