You are here

public function FarmAssetController::save in farmOS 7

Implements EntityAPIControllerInterface.

Parameters

$transaction: Optionally a DatabaseTransaction object to use. Allows overrides to pass in their transaction object.

Overrides EntityAPIController::save

File

modules/farm/farm_asset/farm_asset.class.inc, line 54
Farm asset classes.

Class

FarmAssetController
Farm asset controller class.

Code

public function save($entity, DatabaseTransaction $transaction = NULL) {

  // Set the changed timestamp.
  $entity->changed = REQUEST_TIME;
  return parent::save($entity, $transaction);
}