function adsense_menu in Google AdSense integration 7
Same name and namespace in other branches
- 5.3 adsense.module \adsense_menu()
- 5 adsense.module \adsense_menu()
- 5.2 adsense.module \adsense_menu()
- 6 adsense.module \adsense_menu()
Implements hook_menu().
File
- ./
adsense.module, line 170 - Displays Google AdSense ads on Drupal pages.
Code
function adsense_menu() {
$items = array();
$items['admin/config/services/adsense'] = array(
'title' => 'AdSense',
'description' => 'Configure Google AdSense Ads.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'adsense_main_settings',
),
'access arguments' => array(
'administer adsense',
),
'file' => 'adsense.admin.inc',
);
$items['admin/config/services/adsense/main'] = array(
'title' => 'Settings',
'weight' => 10,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/services/adsense/publisher'] = array(
'title' => 'Publisher ID',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'adsense_id_settings',
),
'access arguments' => array(
'administer adsense',
),
'weight' => 0,
'type' => MENU_LOCAL_TASK,
'file' => 'adsense.admin.inc',
);
$items['admin/config/services/adsense/publisher/site'] = array(
'title' => 'Site ID',
'weight' => -1,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
return $items;
}