You are here

function apachesolr_search_menu in Apache Solr Search 5.2

Same name and namespace in other branches
  1. 8 apachesolr_search.module \apachesolr_search_menu()
  2. 6.3 apachesolr_search.module \apachesolr_search_menu()
  3. 6 apachesolr_search.module \apachesolr_search_menu()
  4. 6.2 apachesolr_search.module \apachesolr_search_menu()
  5. 7 apachesolr_search.module \apachesolr_search_menu()

Implementation of hook_menu().

File

./apachesolr_search.module, line 41
Provides a content search implementation for node content for use with the Apache Solr search application.

Code

function apachesolr_search_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/apachesolr/query-fields',
      'title' => t('Search fields'),
      'callback' => 'apachesolr_search_settings_page',
      'access' => user_access('administer search'),
      'weight' => 1,
      'type' => MENU_LOCAL_TASK,
    );
    $items[] = array(
      'path' => 'admin/settings/apachesolr/content-bias',
      'title' => t('Content bias settings'),
      'callback' => 'apachesolr_boost_settings_page',
      'access' => user_access('administer search'),
      'weight' => 1,
      'type' => MENU_LOCAL_TASK,
    );
  }
  return $items;
}