You are here

public function EntityLegalDocumentVersionController::save in Entity Legal 7.2

Same name and namespace in other branches
  1. 7 entity_legal.entity_controller.inc \EntityLegalDocumentVersionController::save()

Overridden to care exportables that are overridden.

Overrides EntityAPIControllerExportable::save

File

./entity_legal.entity_controller.inc, line 149
Entity API controller classes for entity_legal module.

Class

EntityLegalDocumentVersionController
Legal document version exportable controller.

Code

public function save($entity, DatabaseTransaction $transaction = NULL) {
  if (!empty($entity->is_new)) {
    $entity->created = time();
    $entity->updated = time();
  }
  return parent::save($entity, $transaction);
}