function multiblock_menu in MultiBlock 7
Same name and namespace in other branches
- 5 multiblock.module \multiblock_menu()
- 6 multiblock.module \multiblock_menu()
Implements hook_menu().
File
- ./
multiblock.module, line 11 - Enhances the block API, as provided by D7 Core.
Code
function multiblock_menu() {
$items = array();
$items['admin/structure/block/instances'] = array(
'title' => 'Instances',
'description' => 'Create and delete instances of blocks.',
'page callback' => 'multiblock_general',
'access callback' => 'user_access',
'access arguments' => array(
'administer blocks',
),
'type' => MENU_LOCAL_TASK,
'weight' => -15,
);
$items['admin/structure/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;
}