You are here

protected function BeanEntityAPIController::saveRevision in Bean (for Drupal 7) 7

Saves an entity revision.

Parameters

Entity $entity: Entity revision to save.

Overrides EntityAPIController::saveRevision

File

includes/bean.core.inc, line 524
Bean classes and plugin interface

Class

BeanEntityAPIController

Code

protected function saveRevision($entity) {
  global $user;
  $org_uid = $entity->uid;
  $entity->uid = $user->uid;
  $return = parent::saveRevision($entity);
  $entity->uid = $org_uid;
  return $return;
}