You are here

function ad_menu in Advertisement 7.3

Same name and namespace in other branches
  1. 5.2 ad.module \ad_menu()
  2. 5 ad.module \ad_menu()
  3. 6.3 ad.module \ad_menu()
  4. 6 ad.module \ad_menu()
  5. 6.2 ad.module \ad_menu()
  6. 7 ad.module \ad_menu()

Implements hook_menu().

File

./ad.module, line 42
Core code for the ad module.

Code

function ad_menu() {
  $items = array();
  $items['ad/get'] = array(
    'type' => MENU_CALLBACK,
    'title' => 'Get ads',
    'page callback' => 'ad_get_ads',
    'access callback' => TRUE,
  );
  $items['ad/click/%/%'] = array(
    'type' => MENU_CALLBACK,
    'title' => 'Click ads',
    'page callback' => 'ad_click',
    'page arguments' => array(
      2,
      3,
    ),
    'access callback' => TRUE,
  );
  return $items;
}