function entity_block_entity_info in Entity Blocks 7
Implements hook_entity_info().
File
- ./
entity_block.module, line 10 - Display entities (via view modes) as fieldable blocks.
Code
function entity_block_entity_info() {
return array(
'entity_block' => array(
'label' => t('Entity block'),
'plural label' => t('Entity blocks'),
'entity class' => 'EntityBlock',
'controller class' => 'EntityBlockController',
'module' => 'entity_block',
'base table' => 'entity_block',
'label callback' => 'entity_block_label',
'fieldable' => TRUE,
'entity keys' => array(
'id' => 'entity_block_id',
'bundle' => 'bundle',
),
'bundle keys' => array(
'bundle' => 'bundle',
),
'bundles' => array(
'entity_block' => array(
'label' => 'Entity block',
'admin' => array(
'path' => 'admin/structure/entity-blocks/manage',
'access arguments' => array(
'administer entity blocks',
),
),
),
),
),
);
}