1.12.x block.module block_menu()
1.10.x block.module block_menu()
1.11.x block.module block_menu()
1.7.x block.module block_menu()
1.8.x block.module block_menu()
1.9.x block.module block_menu()

Implements hook_menu().

File

modules/block/block.module, line 21
Provides the ability to create reusable custom blocks.

Code

function block_menu() {
  $items['admin/structure/block'] = array(
    'title' => 'Custom blocks',
    'description' => 'Create reusable blocks that can be placed in layouts.',
    'page callback' => 'block_admin_list',
    'access arguments' => array('administer blocks'),
    'file' => 'block.admin.inc',
  );
  $items['admin/structure/block/list'] = array(
    'title' => 'List custom blocks',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/structure/block/manage/%block_custom_block'] = array(
    'title' => 'Configure block',
    'page callback' => 'backdrop_get_form',
    'page arguments' => array('block_admin_configure', 4),
    'access arguments' => array('administer blocks'),
    'file' => 'block.admin.inc',
  );
  $items['admin/structure/block/manage/%/configure'] = array(
    'title' => 'Configure block',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'context' => MENU_CONTEXT_INLINE,
  );
  $items['admin/structure/block/manage/%/delete'] = array(
    'title' => 'Delete block',
    'page callback' => 'backdrop_get_form',
    'page arguments' => array('block_custom_block_delete', 4),
    'access arguments' => array('administer blocks'),
    'type' => MENU_LOCAL_TASK,
    'context' => MENU_CONTEXT_NONE,
    'file' => 'block.admin.inc',
  );
  $items['admin/structure/block/add'] = array(
    'title' => 'Add custom block',
    'page callback' => 'backdrop_get_form',
    'page arguments' => array('block_add_block_form'),
    'access arguments' => array('administer blocks'),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'block.admin.inc',
  );
  return $items;
}