You are here

function adsense_menu in Google AdSense integration 6

Same name and namespace in other branches
  1. 5.3 adsense.module \adsense_menu()
  2. 5 adsense.module \adsense_menu()
  3. 5.2 adsense.module \adsense_menu()
  4. 7 adsense.module \adsense_menu()

Implementation of hook_menu().

File

./adsense.module, line 131
Displays Google AdSense ads on Drupal pages.

Code

function adsense_menu() {
  $items = array();
  $items['admin/settings/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/settings/adsense/main'] = array(
    'title' => 'Settings',
    'weight' => 10,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/settings/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/settings/adsense/publisher/site'] = array(
    'title' => 'Site ID',
    'weight' => -1,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  return $items;
}