function services_entity_prepare_structure in Services Entity API 7
Prepare data structrure recursively and using metadata wrapper to retrieve the hierarchical properties.
4 calls to services_entity_prepare_structure()
File
- ./
services_entity.module, line 7
Code
function services_entity_prepare_structure(EntityStructureWrapper $wrapper, array $properties = array()) {
if (empty($properties)) {
// By default, expand all the non-computed properties.
$properties = array();
foreach ($wrapper
->getPropertyInfo() as $property_name => $property_info) {
if (empty($property_info['computed'])) {
$properties[$property_name] = $property_name;
}
}
}
return _services_entity_prepare_structure($wrapper, $properties);
}