You are here

function _recaptcha_v3_get_all_actions in reCAPTCHA v3 7

Returns array of all existing actions.

See also

form_validate_machine_name()

3 calls to _recaptcha_v3_get_all_actions()
recaptcha_v3_admin_settings in ./recaptcha_v3.admin.inc
Form callback; administrative settings for Google No CAPTCHA.
recaptcha_v3_admin_settings_submit in ./recaptcha_v3.admin.inc
Submit function for recaptcha_v3_admin_settings().
recaptcha_v3_captcha in ./recaptcha_v3.module
Implements hook_captcha().

File

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

Code

function _recaptcha_v3_get_all_actions() {
  return db_select('recaptcha_v3_actions', 'a')
    ->fields('a')
    ->execute()
    ->fetchAllAssoc('id', PDO::FETCH_ASSOC);
}