You are here

public function Drafty::isDraftRevision in Drafty 7

File

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

Class

Drafty
Handles tracking, selecting and publishing revisions.

Code

public function isDraftRevision($entity) {
  return !empty($entity->is_draft_revision);
}