function image_captcha_menu in CAPTCHA 6
Same name and namespace in other branches
- 5.3 image_captcha/image_captcha.module \image_captcha_menu()
- 6.2 image_captcha/image_captcha.module \image_captcha_menu()
- 7 image_captcha/image_captcha.module \image_captcha_menu()
Implementation of hook_menu().
File
- image_captcha/
image_captcha.module, line 28
Code
function image_captcha_menu() {
$items = array();
// add an administration tab for image_captcha
$items['admin/user/captcha/image_captcha'] = array(
'title' => 'Image CAPTCHA',
'file' => 'image_captcha.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'image_captcha_settings_form',
),
'access arguments' => array(
'administer CAPTCHA settings',
),
'type' => MENU_LOCAL_TASK,
);
// callback for generating an image
$items['image_captcha'] = array(
'file' => 'image_captcha.user.inc',
'page callback' => 'image_captcha_image',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}