You are here

function riddler_menu in Captcha Riddler 5

Same name and namespace in other branches
  1. 6 riddler.module \riddler_menu()
  2. 7 riddler.module \riddler_menu()

File

./riddler.module, line 34

Code

function riddler_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $access = user_access('administer riddler');
    $items[] = array(
      'path' => 'admin/user/captcha/riddler',
      'title' => t('Riddler'),
      'description' => t('Allows you to force a question to a number of forms to counter f.e. spammers.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'riddler_settings',
      ),
      'access' => $access,
      'type' => MENU_LOCAL_TASK,
    );
  }
  return $items;
}