You are here

public function Drafty::wasRevisionRequested in Drafty 7

File

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

Class

Drafty
Handles tracking, selecting and publishing revisions.

Code

public function wasRevisionRequested($entity) {
  return isset($entity->_drafty_revision_requested) && $entity->_drafty_revision_requested === FIELD_LOAD_REVISION;
}