function image_captcha_menu in CAPTCHA 7
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()
- 6 image_captcha/image_captcha.module \image_captcha_menu()
Implements hook_menu().
File
- image_captcha/
image_captcha.module, line 33 - Implements image CAPTCHA for use with the CAPTCHA module
Code
function image_captcha_menu() {
$items = array();
// Add an administration tab for image_captcha.
$items['admin/config/people/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,
);
// Menu path for generating font example.
$items['admin/config/people/captcha/image_captcha/font_preview'] = array(
'title' => 'Font example',
'file' => 'image_captcha.admin.inc',
'page callback' => 'image_captcha_font_preview',
'access arguments' => array(
'administer CAPTCHA settings',
),
'type' => MENU_CALLBACK,
);
// 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;
}