You are here

public function Drafty::setRevisionToBePublished in Drafty 7

Add a revision to be published to the tracker.

Parameters

$type: The entity type.

$id: The entity ID.

$vid: The entity version ID.

Return value

$this

File

./drafty.module, line 255
Hook implementations and API functions for the Drafty module.

Class

Drafty
Handles tracking, selecting and publishing revisions.

Code

public function setRevisionToBePublished($type, $id, $vid) {

  // Only one revision can be published during a request, so just overwrite
  // and for now last one wins.
  $this->revisionsToPublish[$type][$id] = $vid;
  return $this;
}