You are here

function disclaimer_menu in Disclaimer 6

Same name and namespace in other branches
  1. 6.2 disclaimer.module \disclaimer_menu()
  2. 7 disclaimer.module \disclaimer_menu()

Implementation of hook_menu().

File

./disclaimer.module, line 17
Create and show disclaimer for your site. Visotors need js enabled and accept cookie

Code

function disclaimer_menu() {
  $items = array();

  // disclaimer page
  $items['disclaimer'] = array(
    'title' => 'Disclaimer',
    'page callback' => '_disclaimer_get_content',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );

  // configuration page of the Disclaimer module
  $items['admin/settings/disclaimer'] = array(
    'title' => 'Disclaimer',
    'description' => 'Administer Disclaimer settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'disclaimer_admin_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer disclaimer settings',
    ),
    'file' => 'disclaimer.admin.inc',
  );
  return $items;
}