function botcha_menu in BOTCHA Spam Prevention 6
Same name and namespace in other branches
- 6.2 botcha.module \botcha_menu()
- 7 botcha.module \botcha_menu()
- 7.2 botcha.module \botcha_menu()
Implements hook_menu().
File
- ./
botcha.module, line 56 - 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/user/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/user/botcha/botcha_point'] = array(
'title' => 'BOTCHA point administration',
'file' => 'botcha.pages.inc',
'page callback' => 'botcha_point_admin',
'page arguments' => array(
4,
5,
),
'access arguments' => array(
'administer BOTCHA settings',
),
'type' => MENU_CALLBACK,
);
return $items;
}