function text_captcha_menu in CAPTCHA 5.3
Same name and namespace in other branches
- 6 text_captcha/text_captcha.module \text_captcha_menu()
Implementation of hook_menu().
File
- text_captcha/
text_captcha.module, line 30 - Implementation of a text based CAPTCHA.
Code
function text_captcha_menu($may_cache) {
$items = array();
if ($may_cache) {
// add an administration tab for text_captcha
$items[] = array(
'path' => 'admin/user/captcha/text_captcha',
'title' => t('Text CAPTCHA'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'text_captcha_settings_form',
),
'type' => MENU_LOCAL_TASK,
);
}
return $items;
}