function party_property_dataset_get in Party 8.2
Same name and namespace in other branches
- 7 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.module - Implements hook_entity_property_info_alter().
File
- ./
party.module, line 1596 - Provides a generic CRM party entity.
Code
function party_property_dataset_get($party, array $options, $data_set_name, $entity_type, $info) {
$controller = party_get_crm_controller($party, $data_set_name);
$entities = $controller
->getEntityIds();
// @TODO: Fix this to handle multiple entities when that's available.
return $entities ? reset($entities) : NULL;
}