You are here

function fuzzysearch_menu in Fuzzy Search 6

Implementation of hook_menu().

File

./fuzzysearch.module, line 69
Module file for fuzzysearch module.

Code

function fuzzysearch_menu() {
  $items['admin/settings/fuzzysearch'] = array(
    'title' => 'Fuzzysearch settings',
    'description' => 'Fuzzysearch settings allow you to index certain node data',
    'page callback' => 'fuzzysearch_admin',
    'access arguments' => array(
      'administer fuzzysearch',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'fuzzysearch.admin.inc',
  );
  $items[variable_get('fuzzysearch_path_name', 'fuzzysearch/results')] = array(
    'title' => 'Search',
    'page callback' => 'fuzzysearch_show_results',
    'access arguments' => array(
      'fuzzysearch content',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/reports/fuzzysearch'] = array(
    'title' => 'Top fuzzysearch phrases',
    'description' => 'View most popular fuzzysearch phrases.',
    'page callback' => 'dblog_top',
    'page arguments' => array(
      'fuzzysearch',
    ),
    'access arguments' => array(
      'access site reports',
    ),
    'file' => 'dblog.admin.inc',
    'file path' => drupal_get_path('module', 'dblog'),
  );
  return $items;
}