function word_list_captcha_menu in CAPTCHA Pack 5
Same name and namespace in other branches
- 6 text_captcha/word_list_captcha/word_list_captcha.module \word_list_captcha_menu()
- 7 text_captcha/word_list_captcha/word_list_captcha.module \word_list_captcha_menu()
Implementation of hook_menu().
File
- text_captcha/
word_list_captcha/ word_list_captcha.module, line 21
Code
function word_list_captcha_menu($may_cache) {
$items = array();
if ($may_cache) {
// add an administration tab for phrase_captcha
$items[] = array(
'path' => 'admin/user/captcha/word_list_captcha',
'title' => t('Unrelated word'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'word_list_captcha_settings_form',
),
'type' => MENU_LOCAL_TASK,
);
}
return $items;
}