function sna_blocks_menu in Simple Node Archive Blocks 6
Same name and namespace in other branches
- 7 sna_blocks.module \sna_blocks_menu()
Implements hook_menu().
File
- ./
sna_blocks.module, line 10 - Provide a simple node archive block
Code
function sna_blocks_menu() {
$items['admin/settings/sna'] = array(
'title' => 'Simple Node Archive',
'description' => 'adjust node archive',
'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/settings/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;
}