function multiblock_menu in MultiBlock 5
Same name and namespace in other branches
- 6 multiblock.module \multiblock_menu()
- 7 multiblock.module \multiblock_menu()
Implementation of hook_menu().
File
- ./
multiblock.module, line 6
Code
function multiblock_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/build/block/instances',
'title' => t('Instances'),
'description' => t('Create and delete instances of blocks.'),
'callback' => 'multiblock_general',
'access' => user_access('administer blocks'),
'type' => MENU_LOCAL_TASK,
'weight' => -1,
);
$items[] = array(
'path' => 'admin/build/block/instances/delete',
'title' => t('Delete Block Instance'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'multiblock_delete_form',
),
'access' => user_access('administer blocks'),
'type' => MENU_CALLBACK,
);
}
return $items;
}