function custom_block_type_add

Page callback: Presents the custom block type creation form.

Return value

array A form array as expected by drupal_render().

See also

custom_block_menu()

1 string reference to 'custom_block_type_add'
custom_block_menu in drupal/core/modules/block/custom_block/custom_block.module
Implements hook_menu().

File

drupal/core/modules/block/custom_block/custom_block.admin.inc, line 18
Admin page callbacks for the custom block module.

Code

function custom_block_type_add() {
  $block_type = entity_create('custom_block_type', array());
  return entity_get_form($block_type);
}