function archive_menu in Archive 5
Same name and namespace in other branches
- 6 archive.module \archive_menu()
- 7.2 archive.module \archive_menu()
- 7 archive.module \archive_menu()
Implementation of hook_menu().
File
- ./
archive.module, line 24
Code
function archive_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'archive',
'access' => user_access('access content'),
'callback' => 'archive_page',
'description' => t('Browse the archives'),
'type' => MENU_SUGGESTED_ITEM,
);
$items[] = array(
'path' => 'admin/settings/archive',
'title' => t('Archive Settings'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'archive_admin_settings',
),
'description' => t('Configure node types available for archive browsing.'),
'type' => MENU_NORMAL_ITEM,
);
}
else {
drupal_add_css(drupal_get_path('module', 'archive') . '/archive.css');
}
return $items;
}