You are here

public function EntityReferenceFieldBehaviorExample::load in Entity reference 7

Act on loading entity reference fields of entities.

Overrides EntityReference_BehaviorHandler_Abstract::load

See also

hook_field_load()

File

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

Class

EntityReferenceFieldBehaviorExample

Code

public function load($entity_type, $entities, $field, $instances, $langcode, &$items) {
  drupal_set_message(t('Do something on load!'));
}