You are here

function search_autocomplete_menu in Search Autocomplete 5

Same name and namespace in other branches
  1. 6.4 search_autocomplete.admin.inc \search_autocomplete_menu()
  2. 6 search_autocomplete.module \search_autocomplete_menu()
  3. 6.2 search_autocomplete.admin.inc \search_autocomplete_menu()
  4. 7.4 search_autocomplete.admin.inc \search_autocomplete_menu()
  5. 7.2 search_autocomplete.admin.inc \search_autocomplete_menu()
  6. 7.3 search_autocomplete.admin.inc \search_autocomplete_menu()

Add an administration page for this module at admin/settings/search/search_autocomplete

File

./search_autocomplete.module, line 14
Drupal Module: Search Autocomplete New maintener: Miroslav <www.axiomcafe.fr/contact>

Code

function search_autocomplete_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/search/search_autocomplete',
      'title' => t("Search Autocomplete"),
      'description' => t('Settings for the search autocomplete module.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'search_autocomplete_admin_settings',
      ),
      'access' => user_access('search autocomplete admin'),
      'type' => MENU_NORMAL_ITEM,
    );
    $items[] = array(
      'path' => 'search_autocomplete/autocomplete',
      'callback' => 'search_autocomplete_autocomplete',
      'access' => user_access('search autocomplete access'),
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}