function menu_block_menu in Menu Block 5
Same name and namespace in other branches
- 5.2 menu_block.module \menu_block_menu()
- 6.2 menu_block.module \menu_block_menu()
- 7.3 menu_block.module \menu_block_menu()
- 7.2 menu_block.module \menu_block_menu()
Implementation of hook_menu().
File
- ./
menu_block.module, line 13
Code
function menu_block_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/build/menu-block',
'title' => t('Menu blocks'),
'description' => t('Enable blocks to appear on the <a href="!url">administer blocks page</a>.', array(
'!url' => url('admin/build/block'),
)),
'access' => user_access('administer menu block'),
'callback' => 'drupal_get_form',
'callback arguments' => 'menu_block_settings',
);
}
else {
drupal_add_css(drupal_get_path('module', 'menu_block') . '/menu_block.css');
}
return $items;
}