function top_searches_menu in Top Searches 5
Same name and namespace in other branches
- 6 top_searches.module \top_searches_menu()
- 7 top_searches.module \top_searches_menu()
Implementation of hook_menu().
File
- ./
top_searches.module, line 6
Code
function top_searches_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/top_searches',
'access' => user_access('administer blocks'),
'title' => t('Top Searches'),
'callback' => drupal_get_form,
'callback arguments' => array(
'top_searches_admin_form',
),
'description' => t('General settings for the Top Searches module.'),
);
$items[] = array(
'path' => 'admin/settings/top_searches/clear',
'access' => user_access('administer blocks'),
'title' => t('Top Searches'),
'type' => MENU_CALLBACK,
'callback' => 'top_searches_form_clear',
'description' => t('General settings for the Top Searches module.'),
);
}
return $items;
}