function entity_block_get_entity_types_options in Entity Blocks 7
Returns an #options ready array.
Return value
array
1 call to entity_block_get_entity_types_options()
- entity_block_form in ./
entity_block.module - Returns the form for adding an entity block.
File
- ./
entity_block.module, line 485 - Display entities (via view modes) as fieldable blocks.
Code
function entity_block_get_entity_types_options() {
$entity_types = array();
$entity_info = entity_block_get_entity_types();
foreach ($entity_info as $entity_type => $info) {
$entity_types[$entity_type] = $info['label'];
}
return $entity_types;
}