You are here

function popup_onload_menu in Popup On Load 7

Implements hook_menu().

File

./popup_onload.module, line 393
Contains main popup_onload hooks and functions.

Code

function popup_onload_menu() {
  $items = [];
  $items['admin/config/user-interface/popup_onload'] = [
    'title' => 'Popup On Load',
    'description' => 'Configure popups on page load.',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'popup_onload_admin_settings_form',
    ],
    'file' => 'popup_onload.admin.inc',
    'access arguments' => [
      'administer popup_onload entities',
    ],
    'type' => MENU_NORMAL_ITEM,
  ];
  $items['admin/structure/popup_onload/manage'] = [
    'title' => 'Popup On Load',
    'access arguments' => [
      'administer popup_onload entities',
    ],
  ];
  $items['popup_onload_save_cookie_gateway'] = [
    'title' => 'Popup cookie AJAX gate',
    'page callback' => 'popup_onload_save_cookie',
    'access arguments' => [
      'access content',
    ],
    'type' => MENU_CALLBACK,
  ];
  return $items;
}