function apachesolr_menu in Apache Solr Search 5
Same name and namespace in other branches
- 8 apachesolr.module \apachesolr_menu()
- 5.2 apachesolr.module \apachesolr_menu()
- 6.3 apachesolr.module \apachesolr_menu()
- 6 apachesolr.module \apachesolr_menu()
- 6.2 apachesolr.module \apachesolr_menu()
- 7 apachesolr.module \apachesolr_menu()
Implementation of hook_menu().
File
- ./
apachesolr.module, line 11 - Integration with the Apache Solr search application.
Code
function apachesolr_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/apachesolr',
'title' => t('Apache Solr'),
'description' => t('Administer Apache Solr.'),
'callback' => 'drupal_get_form',
'callback arguments' => 'apachesolr_settings',
'access' => user_access('administer search'),
);
$items[] = array(
'path' => 'admin/settings/apachesolr/settings',
'title' => t('Settings'),
'weight' => -10,
'callback' => 'drupal_get_form',
'callback arguments' => 'apachesolr_settings',
'access' => user_access('administer search'),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items[] = array(
'path' => 'admin/settings/apachesolr/index',
'title' => t('Search index'),
'weight' => -8,
'callback' => 'apachesolr_index_page',
'access' => user_access('administer search'),
'type' => MENU_LOCAL_TASK,
);
}
return $items;
}