You are here

public function EntityReferenceInstanceBehaviorExample::update in Entity reference 7

Act before updating an entity reference field.

Overrides EntityReference_BehaviorHandler_Abstract::update

See also

hook_field_update()

File

examples/entityreference_behavior_example/plugins/behavior/EntityReferenceInstanceBehaviorExample.class.php, line 13

Class

EntityReferenceInstanceBehaviorExample

Code

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