You are here

public function EntityLegalDocumentAcceptanceController::save in Entity Legal 7

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

Adds legal document identifier and revision values to the acceptance entity.

Overrides EntityAPIController::save

File

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

Class

EntityLegalDocumentAcceptanceController
Entity controller for legal document acceptance entity.

Code

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

  // Dump all available data from the current users browsing session.
  $entity->data = $_SERVER;
  return parent::save($entity, $transaction);
}