You are here

public function PopupOnLoadController::save in Popup On Load 7

Save the popup.

Overrides EntityAPIController::save

See also

EntityAPIController::save()

File

./popup_onload.entity.inc, line 75
Popupad entity model and controller classes.

Class

PopupOnLoadController
PopupOnLoadControllerController extends DrupalDefaultEntityController.

Code

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

  // Make use of the formatted body field.
  $entity->format = $entity->body['format'];
  $entity->body = $entity->body['value'];
  parent::save($entity, $transaction);
}