You are here

function suggestion_menu in Autocomplete Search Suggestions 7

Implements hook_menu().

File

./suggestion.module, line 94
Autocomplete suggestions.

Code

function suggestion_menu() {
  return array(
    'admin/config/suggestion' => array(
      'title' => 'Suggestion Configuration',
      'description' => 'Suggestion auto-complete settings.',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'suggestion_admin_settings_form',
      ),
      'access arguments' => array(
        'administer suggestion',
      ),
      'file' => 'suggestion.admin.inc',
      'type' => MENU_NORMAL_ITEM,
    ),
    'admin/config/suggestion/edit/%' => array(
      'title' => 'Edit Suggestion',
      'description' => 'Suggestions editing.',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'suggestion_admin_edit_form',
        4,
      ),
      'access arguments' => array(
        'administer suggestion',
      ),
      'file' => 'suggestion.admin.inc',
      'type' => MENU_CALLBACK,
    ),
    'admin/config/suggestion/index' => array(
      'title' => 'Indexing',
      'description' => 'Suggestions indexing options.',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'suggestion_admin_index_form',
      ),
      'access arguments' => array(
        'administer suggestion',
      ),
      'file' => 'suggestion.admin.inc',
      'type' => MENU_LOCAL_TASK,
      'weight' => 10,
    ),
    'admin/config/suggestion/search' => array(
      'title' => 'Search',
      'description' => 'Search and update suggestions.',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'suggestion_admin_search_form',
        4,
      ),
      'access arguments' => array(
        'administer suggestion',
      ),
      'file' => 'suggestion.admin.inc',
      'type' => MENU_LOCAL_TASK,
      'weight' => 20,
    ),
    'admin/config/suggestion/settings' => array(
      'title' => 'Configuration',
      'description' => 'Suggestion auto-complete settings.',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'suggestion_admin_settings_form',
      ),
      'access arguments' => array(
        'administer suggestion',
      ),
      'file' => 'suggestion.admin.inc',
      'type' => MENU_DEFAULT_LOCAL_TASK,
      'weight' => 0,
    ),
    'suggestion/autocomplete' => array(
      'page callback' => 'suggestion_autocomplete',
      'access callback' => 'suggestion_autocomplete_access_callback',
      'type' => MENU_CALLBACK,
      'delivery callback' => 'ajax_callback',
    ),
  );
}