public function EntityReferenceInstanceBehaviorExample::delete in Entity reference 7
Act before deleting an entity with an entity reference field.
Overrides EntityReference_BehaviorHandler_Abstract::delete
See also
File
- examples/
entityreference_behavior_example/ plugins/ behavior/ EntityReferenceInstanceBehaviorExample.class.php, line 17
Class
Code
public function delete($entity_type, $entity, $field, $instance, $langcode, &$items) {
drupal_set_message(t('Do something on delete, on the instance level!'));
}