simple_recaptcha.install in Simple Google reCAPTCHA 8
Installation hooks for simple_recaptcha module.
File
simple_recaptcha.installView 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
Name | Description |
---|---|
simple_recaptcha_update_8001 | Update module configuration and and populate values for new settings. |