You are here

function recaptcha_v3_menu in reCAPTCHA v3 7

Implements hook_menu().

File

./recaptcha_v3.module, line 31
Verifies if user is a human without necessity to solve a CAPTCHA.

Code

function recaptcha_v3_menu() {
  $items['admin/config/people/captcha/recaptcha-v3'] = array(
    'title' => 'reCAPTCHA v3',
    'description' => 'Administer the Google reCAPTCHA v3 web service.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'recaptcha_v3_admin_settings',
    ),
    'access arguments' => array(
      'administer CAPTCHA settings',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'recaptcha_v3.admin.inc',
    'weight' => 1,
  );
  $items['admin/config/people/captcha/recaptcha-v3/%/delete'] = array(
    'title' => 'Delete reCAPTCHA v3 action',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'recaptcha_v3_admin_settings_delete_action',
      5,
    ),
    'access arguments' => array(
      'administer CAPTCHA settings',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'recaptcha_v3.admin.inc',
    'weight' => 1,
  );
  return $items;
}