You are here

function ad_channel_menu in Advertisement 6.3

Same name and namespace in other branches
  1. 5.2 channel/ad_channel.module \ad_channel_menu()
  2. 6.2 channel/ad_channel.module \ad_channel_menu()
  3. 7 channel/ad_channel.module \ad_channel_menu()

Implementation of hook_menu.

File

channel/ad_channel.module, line 47
Ad Channel module.

Code

function ad_channel_menu() {
  $items = array();
  $items['admin/content/ad/channel'] = array(
    'title' => t('Channels'),
    'page callback' => 'ad_channel_admin_overview',
    'access arguments' => array(
      'administer channels',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 6,
  );
  $items['admin/content/ad/channel/list'] = array(
    'title' => t('List'),
    'page callback' => 'ad_channel_admin_overview',
    'access arguments' => array(
      'administer channels',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  );
  $items['admin/content/ad/channel/container'] = array(
    'title' => t('Create container'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ad_channel_admin_container',
    ),
    'access arguments' => array(
      'administer channels',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  $items['admin/content/ad/channel/channel'] = array(
    'title' => t('Create channel'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ad_channel_admin_channel',
    ),
    'access arguments' => array(
      'administer channels',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 4,
  );
  $items['admin/content/ad/channel/settings'] = array(
    'title' => t('Settings'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ad_channel_admin_settings',
    ),
    'access arguments' => array(
      'administer channels',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 9,
  );
  $items['admin/content/ad/channel/container/%ad_channel_container/delete'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ad_channel_admin_confirm_delete_container',
      5,
    ),
    'access arguments' => array(
      'administer channels',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/content/ad/channel/channel/%ad_channel_channel/delete'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ad_channel_admin_confirm_delete_channel',
      5,
    ),
    'access arguments' => array(
      'administer channels',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}