You are here

function botcha_menu in BOTCHA Spam Prevention 7

Same name and namespace in other branches
  1. 6 botcha.module \botcha_menu()
  2. 6.2 botcha.module \botcha_menu()
  3. 7.2 botcha.module \botcha_menu()

Implements hook_menu().

File

./botcha.module, line 61
BOTCHA - Spam Prevention It modifies forms by adding various botcha's.

Code

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

  // main configuration page of BOTCHA module
  $items['admin/config/people/botcha'] = array(
    'title' => 'BOTCHA',
    'description' => 'Administer how and where BOTCHAs are used.',
    'file' => 'botcha.pages.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'botcha_admin_settings',
    ),
    'access arguments' => array(
      'administer BOTCHA settings',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/people/botcha/botcha_point'] = array(
    'title' => 'BOTCHA point administration',
    'file' => 'botcha.pages.inc',
    'page callback' => 'botcha_point_admin',
    'page arguments' => array(
      5,
      6,
    ),
    'access arguments' => array(
      'administer BOTCHA settings',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}