function google_cse_menu in Google Custom Search Engine 6
Same name and namespace in other branches
- 5 google_cse.module \google_cse_menu()
- 7.3 google_cse.module \google_cse_menu()
Implementation of hook_menu().
File
- ./
google_cse.module, line 11 - Display a Google Custom Search Engine on your site.
Code
function google_cse_menu() {
if (!module_exists('google') && variable_get('google_cse_results_display', 'here') != 'google') {
$items['search/google'] = array(
'access arguments' => array(
'search Google CSE',
),
'title callback' => 'google_cse_results_tab',
'description' => 'Google Custom Search Engine',
'page callback' => 'google_cse_results',
'type' => MENU_LOCAL_TASK,
);
}
$items['admin/settings/google_cse'] = array(
'access arguments' => array(
'administer site configuration',
),
'title' => 'Google CSE',
'description' => 'Configure the Google Custom Search Engine.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'google_cse_admin_settings',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'google_cse.admin.inc',
);
return $items;
}