You are here

function facebook_tracking_pixel_menu in Facebook Tracking Pixel 7

Same name and namespace in other branches
  1. 8 facebook_tracking_pixel.module \facebook_tracking_pixel_menu()

Implements hook_menu().

File

./facebook_tracking_pixel.module, line 13
facebook_tracking_pixel.module Facebook Tracking Module.

Code

function facebook_tracking_pixel_menu() {
  $items = [];
  $items['admin/config/system/facebook_tracking_pixel'] = [
    'title' => 'Administer Facebook Tracking Pixel',
    'description' => 'Facebook Tracking pixel module.',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'facebook_tracking_pixel_settings_form',
    ],
    'access arguments' => [
      'administer facebook tracking pixels',
    ],
    'file' => 'facebook_tracking_pixel.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  ];
  $items['admin/config/system/facebook_tracking_pixel/default'] = [
    'title' => 'Administer Facebook Tracking Pixel',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  ];
  $items['admin/config/system/facebook_tracking_pixel/base_codes'] = [
    'title' => 'Base Tracking Codes',
    'page arguments' => [
      'facebook_tracking_pixel_base_codes_form',
    ],
    'access arguments' => [
      'administer facebook tracking pixels',
    ],
    'file' => 'facebook_tracking_pixel.admin.inc',
    'type' => MENU_LOCAL_TASK,
  ];
  $items['admin/config/system/facebook_tracking_pixel/user_registration'] = [
    'title' => 'Track User Registration',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'facebook_tracking_pixel_user_registration',
    ],
    'access arguments' => [
      'administer facebook tracking pixels',
    ],
    'file' => 'facebook_tracking_pixel.admin.inc',
    'type' => MENU_LOCAL_TASK,
  ];
  $items['admin/config/system/facebook_tracking_pixel/base_codes/delete/%'] = [
    'title' => 'Delete a Base Code',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'facebook_tracking_pixel_base_codes_delete_form',
      6,
    ],
    'access arguments' => [
      'administer facebook tracking pixels',
    ],
    'file' => 'facebook_tracking_pixel.admin.inc',
    'type' => MENU_CALLBACK,
  ];
  $items['admin/config/system/facebook_tracking_pixel/base_codes/edit/%'] = [
    'title' => 'Edit a Base Code',
    'page callback' => 'drupal_get_form',
    'access arguments' => [
      'administer facebook tracking pixels',
    ],
    'file' => 'facebook_tracking_pixel.admin.inc',
    'page arguments' => [
      'facebook_tracking_pixel_base_codes_edit_form',
      6,
    ],
    'type' => MENU_CALLBACK,
  ];
  $items['admin/config/system/facebook_tracking_pixel/purge'] = [
    'title' => 'Purge',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'facebook_tracking_pixel_form_purge',
    ],
    'access arguments' => [
      'administer facebook tracking pixels',
    ],
    'file' => 'facebook_tracking_pixel.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 50,
  ];
  $items['admin/config/system/facebook_tracking_pixel/path'] = [
    'title' => 'Track Events by Path',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'facebook_tracking_pixel_track_by_path_form',
    ],
    'access arguments' => [
      'administer facebook tracking pixels',
    ],
    'file' => 'facebook_tracking_pixel.admin.path.inc',
    'type' => MENU_LOCAL_TASK,
  ];
  $items['admin/config/system/facebook_tracking_pixel/path/add'] = [
    'title' => 'Add tracking based on path',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'facebook_tracking_pixel_path_add_form',
    ],
    'access arguments' => [
      'administer facebook tracking pixels',
    ],
    'file' => 'facebook_tracking_pixel.admin.path.inc',
    'type' => MENU_LOCAL_ACTION,
  ];
  $items['admin/config/system/facebook_tracking_pixel/path/delete/%'] = [
    'title' => 'Deleting an event',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'facebook_tracking_pixel_path_delete_form',
      6,
    ],
    'access arguments' => [
      'administer facebook tracking pixels',
    ],
    'file' => 'facebook_tracking_pixel.admin.path.inc',
    'type' => MENU_CALLBACK,
  ];
  $items['admin/config/system/facebook_tracking_pixel/path/edit/%'] = [
    'title' => 'Update details of an event',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'facebook_tracking_pixel_path_edit_form',
      6,
    ],
    'access arguments' => [
      'administer facebook tracking pixels',
    ],
    'file' => 'facebook_tracking_pixel.admin.path.inc',
    'type' => MENU_CALLBACK,
  ];
  $items['admin/config/system/facebook_tracking_pixel/commercetracking'] = [
    'title' => 'Commerce Tracking',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'facebook_tracking_pixel_commerce_form',
    ],
    'access arguments' => [
      'administer facebook tracking pixels',
    ],
    'file' => 'facebook_tracking_pixel.admin.commerce.inc',
    'type' => MENU_LOCAL_TASK,
  ];
  $items['admin/config/system/facebook_tracking_pixel/enhanced'] = [
    'title' => 'Enhanced Tracking',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'facebook_tracking_pixel_form_enhanced',
    ],
    'access arguments' => [
      'administer facebook tracking pixels',
    ],
    'file' => 'facebook_tracking_pixel.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 35,
  ];
  return $items;
}