function block_admin_add

Page callback: Build the block instance add form.

Parameters

string $plugin_id: The plugin ID for the block instance.

string $theme: The name of the theme for the block instance.

Return value

array The block instance edit form.

1 string reference to 'block_admin_add'
block_menu in drupal/core/modules/block/block.module
Implements hook_menu().

File

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

Code

function block_admin_add($plugin_id, $theme) {
  $entity = entity_create('block', array(
    'plugin' => $plugin_id,
    'theme' => $theme,
  ));
  return entity_get_form($entity);
}