You are here

function better_watchdog_ui_entity_entity_info in Better Watchdog UI 7

Same name and namespace in other branches
  1. 8 better_watchdog_ui_entity/better_watchdog_ui_entity.module \better_watchdog_ui_entity_entity_info()
  2. 7.3 better_watchdog_ui_entity/better_watchdog_ui_entity.module \better_watchdog_ui_entity_entity_info()
  3. 7.2 better_watchdog_ui_entity/better_watchdog_ui_entity.module \better_watchdog_ui_entity_entity_info()

Implements hook_entity_info().

File

better_watchdog_ui_entity/better_watchdog_ui_entity.module, line 21
Provides a basic wrapper to database log entries, so they can be accessed as entities.

Code

function better_watchdog_ui_entity_entity_info() {
  $return = array(
    'better_watchdog_ui_watchdog' => array(
      'label' => t('Watchdog'),
      'entity class' => 'WatchdogEntity',
      'controller class' => 'WatchdogEntityController',
      'base table' => 'watchdog',
      'fieldable' => FALSE,
      'entity keys' => array(
        'id' => 'wid',
        'bundle' => 'type',
      ),
      'bundle keys' => array(
        'bundle' => 'type',
      ),
      'bundles' => array(),
      'load hook' => 'better_watchdog_ui_watchdog_load',
      'view modes' => array(
        'full' => array(
          'label' => t('Default'),
          'custom settings' => FALSE,
        ),
      ),
      'label callback' => 'better_watchdog_ui_watchdog_title',
      'uri callback' => 'better_watchdog_ui_watchdog_uri',
      'module' => 'better_watchdog_ui_entity',
    ),
  );
  return $return;
}