You are here

function ga_push_browser_entity_info in GA Push 7

Implements hook_entity_info().

File

modules/browser/ga_push_browser.module, line 45
Drupal Module: GA Push (browser).

Code

function ga_push_browser_entity_info() {
  return array(
    'ga_push_browser_event' => array(
      'label' => t('Ga Push Browser entity'),
      'description' => 'An entity type for Google Analytics Push Browser',
      'entity class' => 'GAPushBrowserEvent',
      'controller class' => 'GAPushBrowserEventController',
      'views controller class' => 'EntityDefaultViewsController',
      'base table' => 'ga_push_browser_event',
      'entity keys' => array(
        'id' => 'id',
      ),
      // Make use the class' label() and uri() implementation by default.
      'label callback' => 'entity_class_label',
      'uri callback' => 'entity_class_uri',
      'access callback' => 'ga_push_browser_event_access',
      'view modes' => array(
        'full' => array(
          'label' => t('Full content'),
          'custom settings' => FALSE,
        ),
      ),
    ),
  );
}