You are here

function popup_onload_statistics_menu in Popup On Load 7

Same name and namespace in other branches
  1. 8 modules/popup_onload_statistics/popup_onload_statistics.module \popup_onload_statistics_menu()

Implements hook_menu().

File

popup_onload_statistics/popup_onload_statistics.module, line 53
Main popup on loadvertisement statistics functions.

Code

function popup_onload_statistics_menu() {
  $items = [];
  $items['popup_onload_stats_log'] = [
    'title' => 'Popup statistics AJAX gate',
    'page callback' => 'popup_onload_statistics_log',
    'access arguments' => [
      'access content',
    ],
    'type' => MENU_CALLBACK,
  ];
  $items['admin/reports/popup-statistics'] = [
    'title' => 'Popup statistics',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'popup_onload_statistics_admin_form',
    ],
    'file' => 'popup_onload_statistics.admin.inc',
    'access arguments' => [
      'access site reports',
    ],
    'type' => MENU_NORMAL_ITEM,
  ];
  return $items;
}