You are here

function site_disclaimer_menu in Site Disclaimer 7

Same name and namespace in other branches
  1. 6 site_disclaimer.module \site_disclaimer_menu()

Implements hook_menu().

File

./site_disclaimer.module, line 39
This module adds Site Disclaimer to the registration page.

Code

function site_disclaimer_menu() {
  $items = array();
  $items[SITE_DISCLAIMER_SETTINGS_PATH] = array(
    'description' => 'Add Site Disclaimer to the registration page.',
    'title' => 'Site Disclaimer',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'site_disclaimer_admin_settings',
    ),
    'access arguments' => array(
      'administer site disclaimer',
    ),
    'file' => 'site_disclaimer.admin.inc',
  );
  $items['site_disclaimer/autocomplete'] = array(
    'title' => 'Autocomplete node title',
    'page callback' => 'site_disclaimer_autocomplete',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'site_disclaimer.admin.inc',
  );
  $items[SITE_DISCLAIMER_ACCEPT_PATH] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'site_disclaimer_confirm',
    ),
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
    'file' => 'site_disclaimer.pages.inc',
  );
  return $items;
}