You are here

function panopoly_widgets_field_update in Panopoly Widgets 7

Implements hook_field_update().

File

./panopoly_widgets.spotlight.inc, line 413
A specification for the custom spotlight entity that is part of Panopoly Widgets

Code

function panopoly_widgets_field_update($entity_type, $entity, $field, $instance, $langcode, &$items) {

  // Load the original entity, if $entity->original is not already set.
  // This is done as per http://drupal.org/node/985642 and can be removed when that patch is committed.
  if (empty($entity->original)) {
    $entity->original = entity_load_unchanged($entity_type, $field['id']);
  }
  image_field_update($entity_type, $entity, $field, $instance, $langcode, $items);
}