You are here

function random_captcha_type_menu in CAPTCHA Pack 5

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

Implementation of hook_menu().

File

random_captcha_type/random_captcha_type.module, line 21

Code

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

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