You are here

function ad_remote_menu in Advertisement 7

Same name and namespace in other branches
  1. 5.2 remote/ad_remote.module \ad_remote_menu()
  2. 5 remote/ad_remote.module \ad_remote_menu()
  3. 6.3 remote/ad_remote.module \ad_remote_menu()
  4. 6 remote/ad_remote.module \ad_remote_menu()
  5. 6.2 remote/ad_remote.module \ad_remote_menu()

Implementation of hook_menu().

File

remote/ad_remote.module, line 22
Enhances the ad module to providing cut-and-paste source snippets allowing ads to be easily displayed on remote websites.

Code

function ad_remote_menu() {
  $items = array();
  $items['admin/content/ad/ad_remote'] = array(
    'title' => 'Remote ads',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ad_remote_form',
    ),
    'access arguments' => array(
      'host remote advertisements',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  );
  return $items;
}