function party_detach_entity in Party 7
Same name and namespace in other branches
- 8.2 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 806 - Provides a generic CRM party entity.
Code
function party_detach_entity($party, $entity, $data_set_name) {
/* To Test */
$party
->getDataSetController($data_set_name)
->detachEntity($entity)
->save();
}