Skip to content

Commit

Permalink
Issue #83: QA remark: Add the new config for existing sites.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu-cristea committed Jun 5, 2019
1 parent a373569 commit c18c523
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 'redirect_user_register_route' module setting.
*/
function oe_authentication_post_update_user_register_redirect(): void {
\Drupal::configFactory()->getEditable('oe_authentication.settings')
->set('redirect_user_register_route', TRUE)
->save();
}

0 comments on commit c18c523

Please sign in to comment.