You are here

function google_appliance_menu in Google Search Appliance 5

Same name and namespace in other branches
  1. 6.2 google_appliance.module \google_appliance_menu()
  2. 7 google_appliance.module \google_appliance_menu()

Implementation of hook_menu()

File

./google_appliance.module, line 10
GSA integration

Code

function google_appliance_menu($may_cache = false) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'google_appliance',
      'callback' => 'google_appliance_search',
      'type' => MENU_CALLBACK,
      'access' => true,
    );
    $items[] = array(
      'path' => 'admin/settings/google_appliance',
      'title' => t('Google Appliance Settings'),
      'description' => t('Configuration for the Google Appliance search'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'google_appliance_admin_settings',
      ),
      'access' => user_access('administer search'),
      'type' => MENU_NORMAL_ITEM,
    );
  }
  else {
    _google_appliance_add_meta_tags();
  }
  return $items;
}