You are here

function terms_of_use_menu in Terms of Use 7

Same name and namespace in other branches
  1. 6 terms_of_use.module \terms_of_use_menu()

Implements hook_menu().

File

./terms_of_use.module, line 13
Main module file of the terms of use module.

Code

function terms_of_use_menu() {
  $items = array();
  $items['admin/config/people/terms_of_use'] = array(
    'description' => 'Add Terms of Use to the registration page.',
    'title' => 'Terms of Use',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'terms_of_use_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'terms_of_use.admin.inc',
  );
  $items['terms_of_use/autocomplete'] = array(
    'title' => 'Autocomplete node title',
    'page callback' => 'terms_of_use_autocomplete',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'terms_of_use.admin.inc',
  );
  return $items;
}