function sna_blocks_menu in Simple Node Archive Blocks 7
Same name and namespace in other branches
- 6 sna_blocks.module \sna_blocks_menu()
Implements hook_menu().
File
- ./
sna_blocks.module, line 11 - Provide a simple node archive block
Code
function sna_blocks_menu() {
$items['admin/config/sna'] = array(
'title' => 'Simple Node Archive',
'description' => 'adjust node archive',
'position' => 'right',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'simple node archive administer',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/config/sna/settings'] = array(
'title' => 'settings',
'description' => 'Select node type to show archive',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'sna_blocks_admin_settings',
),
'access arguments' => array(
'simple node archive administer',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'sna_blocks.admin.inc',
);
return $items;
}