You are here

public function EntityReferenceFieldBehaviorExample::delete in Entity reference 7

Act before deleting an entity with an entity reference field.

Overrides EntityReference_BehaviorHandler_Abstract::delete

See also

hook_field_delete()

File

examples/entityreference_behavior_example/plugins/behavior/EntityReferenceFieldBehaviorExample.class.php, line 17

Class

EntityReferenceFieldBehaviorExample

Code

public function delete($entity_type, $entity, $field, $instance, $langcode, &$items) {
  drupal_set_message(t('Do something on delete!'));
}