You are here

function views_block_entity_info in Views Hacks 7

Implements hook_entity_info().

File

views_block/views_block.module, line 15

Code

function views_block_entity_info() {
  return array(
    'block' => array(
      'label' => t('Block'),
      'entity class' => 'BlockEntity',
      'controller class' => 'EntityAPIController',
      'base table' => 'block',
      'fieldable' => FALSE,
      'entity keys' => array(
        'id' => 'bid',
      ),
      'uri callback' => 'entity_class_uri',
      'label callback' => 'views_block_label',
      'access callback' => 'views_block_access',
      'module' => 'views_block',
    ),
  );
}