function party_property_dataset_get in Party 7
Same name and namespace in other branches
- 8.2 party.module \party_property_dataset_get()
Callback for getting attached entity property values.
See also
entity_metadata_field_property_get().
1 string reference to 'party_property_dataset_get'
- party_entity_property_info_alter in ./
party.info.inc - Implements hook_entity_property_info_alter().
File
- ./
party.module, line 1378 - Provides a generic CRM party entity.
Code
function party_property_dataset_get($party, array $options, $data_set_name, $entity_type, $info) {
$entities = $party
->getDataSetController($data_set_name)
->getEntityIds();
// @TODO: Fix this to handle multiple entities when that's available.
return $entities ? reset($entities) : NULL;
}