function party_detach_entity in Party 8.2
Same name and namespace in other branches
- 7 party.module \party_detach_entity()
Detach an entity from a party according to a given data set.
Parameters
$party: The party to detach the entity from.
$entity: The entity to detach. This may also be just the entity id.
$data_set: The name of the data set. DX WTF: can we sniff this out given the entity type and the entity object?
1 call to party_detach_entity()
- party_rules_detach_entity in ./
party.rules.inc - Implement the detach entity rule
File
- ./
party.module, line 935 - Provides a generic CRM party entity.
Code
function party_detach_entity($party, $entity, $data_set_name) {
/* To Test */
$data_set_controller = party_get_crm_controller($party, $data_set_name);
$data_set_controller
->detachEntity($entity);
$data_set_controller
->save();
}