You are here

public function PanelizerEntityBean::entity_allows_revisions in Bean (for Drupal 7) 7

Determine if the entity allows revisions.

File

plugins/entity/PanelizerEntityBean.class.php, line 52
Class for the Panelizer bean entity plugin.

Class

PanelizerEntityBean
Panelizer Entity bean plugin class.

Code

public function entity_allows_revisions($entity) {
  $bean_type_name = $entity->type;
  $retval = array();
  $retval[0] = TRUE;
  $retval[1] = user_access("edit any {$bean_type_name} bean");
  $retval[2] = TRUE;
  return $retval;
}