You are here

function foo_captcha_menu in CAPTCHA Pack 5

Same name and namespace in other branches
  1. 6 foo_captcha/foo_captcha.module \foo_captcha_menu()
  2. 7 foo_captcha/foo_captcha.module \foo_captcha_menu()

Implementation of hook_menu().

File

foo_captcha/foo_captcha.module, line 16

Code

function foo_captcha_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/user/captcha/foo_captcha',
      'title' => t('Foo CAPTCHA'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'foo_captcha_settings_form',
      ),
      'type' => MENU_LOCAL_TASK,
    );
  }
  return $items;
}