You are here

function log_entity_presave in Log entity 7

Implements hook_entity_presave().

File

./log.module, line 351
Log - A general purpose record keeping system.

Code

function log_entity_presave($entity, $type) {

  // Only operate on log entities.
  if ($type != 'log') {
    return;
  }

  // Update "changed" value if there was a value mapped to that.
  if (isset($entity->feeds_item->log_changed)) {
    $entity->changed = $entity->feeds_item->log_changed;
  }
}