You are here

public function FarmPlanController::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_plan/farm_plan.class.inc, line 54
Farm plan classes.

Class

FarmPlanController
Farm plan controller class.

Code

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

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