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
File
- examples/
entityreference_behavior_example/ plugins/ behavior/ EntityReferenceFieldBehaviorExample.class.php, line 17
Class
Code
public function delete($entity_type, $entity, $field, $instance, $langcode, &$items) {
drupal_set_message(t('Do something on delete!'));
}