You are here

function entity_block_add in Entity Blocks 7

Page callback for adding an entity block.

1 string reference to 'entity_block_add'
entity_block_menu in ./entity_block.module
Implements hook_menu().

File

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

Code

function entity_block_add() {
  $entity = entity_get_controller('entity_block')
    ->create();
  return drupal_get_form('entity_block_form', $entity);
}