You are here

function apachesolr_autocomplete_menu in Apache Solr Autocomplete 6

Same name and namespace in other branches
  1. 7.2 apachesolr_autocomplete.module \apachesolr_autocomplete_menu()
  2. 7 apachesolr_autocomplete.module \apachesolr_autocomplete_menu()

Implementation of hook_menu().

File

./apachesolr_autocomplete.module, line 81
Alters search forms to suggest terms using Apache Solr using AJAX. Thanks to robertDouglass who contributed some of the code.

Code

function apachesolr_autocomplete_menu() {
  $items = array();
  $items['apachesolr_autocomplete'] = array(
    'page callback' => 'apachesolr_autocomplete_callback',
    'access callback' => 'user_access',
    'access arguments' => array(
      'search content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}