You are here

class PanelizerEntityPartyActivity in Party 7

Panelizer Entity commerce_booking_ticket plugin class.

Handles commerce_booking_ticket specific functionality for Panelizer.

Hierarchy

Expanded class hierarchy of PanelizerEntityPartyActivity

1 string reference to 'PanelizerEntityPartyActivity'
party_activity.inc in modules/party_activity/plugins/entity/party_activity.inc

File

modules/party_activity/plugins/entity/PanelizerEntityPartyActivity.class.php, line 12
Class for the Panelizer party_activity entity plugin.

View source
class PanelizerEntityPartyActivity extends PanelizerEntityDefault {

  /**
   * True if the entity supports revisions.
   */
  public $supports_revisions = FALSE;
  public $entity_admin_root = 'admin/structure/activity_types';
  public $views_table = 'party_activity';
  public $uses_page_manager = FALSE;

  /**
   * Determine if the entity allows revisions.
   */
  public function entity_allows_revisions($entity) {
    $retval[0] = $this->supports_revisions;
    $retval[1] = user_access('administer activity types');
    return $retval;
  }

  /**
   * Implements PanelizerEntityDefault::entity_access().
   */
  public function entity_access($op, $entity) {
    return entity_access($op, 'party_activity', $entity);
  }

  /**
   * Implements PanelizerEntityDefault::entity_save().
   */
  public function entity_save($entity) {
    return entity_save('party_activity', $entity);
  }

  /**
   * Overrides PanelizerEntityDefault::preprocess_panelizer_view_mode().
   */
  public function preprocess_panelizer_view_mode(&$vars, $entity, $element, $panelizer, $info) {
    $panelizer->link_to_entity = FALSE;
    parent::preprocess_panelizer_view_mode($vars, $entity, $element, $panelizer, $info);
  }

  /**
   * Overrides PanelizerEntityDefault::hook_entity_insert().
   *
   * Do nothing!
   */
  public function hook_entity_insert($entity) {
  }

  /**
   * Overrides PanelizerEntityDefault::hook_entity_insert().
   *
   * Do nothing!
   */
  public function hook_entity_update($entity) {
  }

}

Members