You are here

function adsense_click_menu in Google AdSense integration 7

Same name and namespace in other branches
  1. 5.3 contrib/adsense_click/adsense_click.module \adsense_click_menu()
  2. 6 contrib/adsense_click/adsense_click.module \adsense_click_menu()

Implements hook_menu().

File

contrib/adsense_click/adsense_click.module, line 17
Enables Drupal to track and log the clicks on AdSense ads.

Code

function adsense_click_menu() {
  $items = array();
  $items['admin/config/services/adsense/click'] = array(
    'title' => 'Clicks',
    'description' => 'Track the clicks on Adsense ads.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'adsense_click_admin_settings',
    ),
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'adsense_click.admin.inc',
    'weight' => 9,
  );
  $items['admin/reports/adsense'] = array(
    'title' => 'AdSense clicks',
    'description' => 'Track AdSense clicks.',
    'page callback' => 'adsense_click_log',
    'type' => MENU_NORMAL_ITEM,
    'access arguments' => array(
      'view clicks',
    ),
    'file' => 'adsense_click.logs.inc',
  );
  $items['admin/reports/adsense/top_pages'] = array(
    'title' => 'Top pages',
    'page callback' => 'adsense_click_top_pages',
    'type' => MENU_NORMAL_ITEM,
    'access arguments' => array(
      'view clicks',
    ),
    'file' => 'adsense_click.logs.inc',
  );
  $items['admin/reports/adsense/by_day'] = array(
    'title' => 'By day',
    'page callback' => 'adsense_click_by_day',
    'type' => MENU_NORMAL_ITEM,
    'access arguments' => array(
      'view clicks',
    ),
    'file' => 'adsense_click.logs.inc',
  );
  $items['adsense_click'] = array(
    'page callback' => 'adsense_click_register',
    'type' => MENU_CALLBACK,
    'access callback' => TRUE,
  );
  return $items;
}