You are here

function phrase_captcha_menu in CAPTCHA Pack 5

Same name and namespace in other branches
  1. 6 text_captcha/phrase_captcha/phrase_captcha.module \phrase_captcha_menu()
  2. 7 text_captcha/phrase_captcha/phrase_captcha.module \phrase_captcha_menu()

Implementation of hook_menu().

File

text_captcha/phrase_captcha/phrase_captcha.module, line 29

Code

function phrase_captcha_menu($may_cache) {
  $items = array();
  if ($may_cache) {

    // add an administration tab for phrase_captcha
    $items[] = array(
      'path' => 'admin/user/captcha/phrase_captcha',
      'title' => t('Phrase CAPTCHA'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'phrase_captcha_settings_form',
      ),
      'type' => MENU_LOCAL_TASK,
    );
  }
  return $items;
}