You are here

function recaptcha_get_signup_url in reCAPTCHA 8

Same name and namespace in other branches
  1. 5.2 recaptcha/recaptchalib.php \recaptcha_get_signup_url()
  2. 6 recaptcha-php-1.11/recaptchalib.php \recaptcha_get_signup_url()
  3. 7 recaptcha-php-1.11/recaptchalib.php \recaptcha_get_signup_url()

gets a URL where the user can sign up for reCAPTCHA. If your application has a configuration page where you enter a key, you should provide a link using this function.

Parameters

string $domain The domain where the page is hosted:

string $appname The name of your application:

1 call to recaptcha_get_signup_url()
RecaptchaSettingsForm::buildForm in lib/Drupal/recaptcha/Form/RecaptchaSettingsForm.php
Form constructor.

File

recaptcha-php-1.11/recaptchalib.php, line 202

Code

function recaptcha_get_signup_url($domain = null, $appname = null) {
  return "https://www.google.com/recaptcha/admin/create?" . _recaptcha_qsencode(array(
    'domains' => $domain,
    'app' => $appname,
  ));
}