You are here

function entity_block_block_info in Entity Blocks 7

Implements hook_block_info().

File

./entity_block.module, line 214
Display entities (via view modes) as fieldable blocks.

Code

function entity_block_block_info() {
  $info = array();

  // Create a block for each entity.
  $entities = entity_block_load_multiple();
  foreach ($entities as $entity) {
    $info[$entity->entity_block_id] = array(
      'info' => $entity->title,
    );
  }
  return $info;
}