You are here

function multiblock_menu in MultiBlock 6

Same name and namespace in other branches
  1. 5 multiblock.module \multiblock_menu()
  2. 7 multiblock.module \multiblock_menu()

Implementation of hook_menu().

File

./multiblock.module, line 6

Code

function multiblock_menu() {
  $items = array();
  $items['admin/build/block/instances'] = array(
    'title' => 'Instances',
    'description' => t('Create and delete instances of blocks.'),
    'page callback' => 'multiblock_general',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer blocks',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => -1,
  );
  $items['admin/build/block/instances/delete'] = array(
    'title' => 'Delete Block Instance',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'multiblock_delete_form',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer blocks',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}