public function CerPresetHandler::delete in Corresponding Entity References 7.3
Process an entity delete. Loops through the referenced entity IDs and clears their references to this entity.
1 call to CerPresetHandler::delete()
- CerPresetHandler::update in includes/
CerPresetHandler.inc - Process an entity update. This could be either a normal update done by a user, or a bulk update.
File
- includes/
CerPresetHandler.inc, line 98 - Contains CerPresetHandler.
Class
- CerPresetHandler
- @class Contains the logic for performing CER operations on a single entity, using a single preset.
Code
public function delete(array $IDs = array()) {
// As with $this->insert(), we can process a specific set of references or
// everything in the current set.
$IDs = $IDs ? $IDs : $this->refIDs;
foreach ($this
->load($IDs) as $ref) {
$this->right
->getHandler($ref)
->delete($this->entity->cer->owner);
}
}