function entity_block_load_single in Entity Blocks 7
Loads an entity block.
1 call to entity_block_load_single()
- entity_block_block_view in ./
entity_block.module - Implements hook_block_view().
File
- ./
entity_block.module, line 462 - Display entities (via view modes) as fieldable blocks.
Code
function entity_block_load_single($entity_id, $conditions = array()) {
$entities = entity_get_controller('entity_block')
->load(array(
$entity_id,
), $conditions);
return array_shift($entities);
}