Skip to content

Commit

Permalink
Issue #82: Update existing site config.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu-cristea committed Jun 5, 2019
1 parent 70b428c commit aafa219
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions oe_authentication.post_update.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

/**
* @file
* Post update functions for OE Authentication module.
*/

declare(strict_types = 1);

/**
* Add the 'block_on_site_admin_approval' module setting.
*/
function oe_authentication_post_update_user_register_redirect(): void {
\Drupal::configFactory()->getEditable('oe_authentication.settings')
->set('block_on_site_admin_approval', TRUE)
->save();
}

0 comments on commit aafa219

Please sign in to comment.