You are here

function uniqueness_menu in Uniqueness 6

Same name and namespace in other branches
  1. 7 uniqueness.module \uniqueness_menu()

Implementation of hook_menu().

File

./uniqueness.module, line 23
uniqueness.module

Code

function uniqueness_menu() {
  $items['uniqueness-search'] = array(
    'title' => 'Uniqueness search',
    'page callback' => 'uniqueness_dynamic_callback',
    'access arguments' => array(
      'use uniqueness widget',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/uniqueness'] = array(
    'title' => 'Uniqueness settings',
    'description' => 'Configure the behaviour and appearance of the uniqueness widget.',
    'file' => 'uniqueness.admin.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uniqueness_settings',
    ),
    'access arguments' => array(
      'administer uniqueness',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}