You are here

simple_recaptcha.install in Simple Google reCAPTCHA 8

Installation hooks for simple_recaptcha module.

File

simple_recaptcha.install
View source
<?php

/**
 * @file
 * Installation hooks for simple_recaptcha module.
 */

/**
 * Update module configuration and and populate values for new settings.
 */
function simple_recaptcha_update_8001(&$sandbox) {
  \Drupal::configFactory()
    ->getEditable('simple_recaptcha.config')
    ->set('recaptcha_type', 'v2')
    ->set('v3_score', '80')
    ->save();
}

Functions

Namesort descending Description
simple_recaptcha_update_8001 Update module configuration and and populate values for new settings.