From 170a098ea06d4bc3a598c8cb6553d8cc2e4a089d Mon Sep 17 00:00:00 2001 From: Rajab Natshah <rajabn@gmail.com> Date: Tue, 27 Feb 2018 15:15:47 +0200 Subject: [PATCH] Issue #2941397: Added [Varbase Auth] feature module for Varbase Social Single Sign-On authentication with a number of default supported social networks --- src/FormBit/varbase_auth.formbit.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/FormBit/varbase_auth.formbit.php b/src/FormBit/varbase_auth.formbit.php index a428d8e3..dc545221 100644 --- a/src/FormBit/varbase_auth.formbit.php +++ b/src/FormBit/varbase_auth.formbit.php @@ -60,16 +60,7 @@ function varbase_auth_submit_formbit(array $editable_config_values) { $configFactory->set('social_auth_type', $editable_config_values['simple.settings']['social_auth_type']); $configFactory->save(TRUE); - _varbase_auth_enable_modules(); -} - -/** - * Custom function to get checked values. - * - * From the Config and enable the modules. - */ -function _varbase_auth_enable_modules() { - $configFactory = \Drupal::configFactory()->getEditable('simple.settings'); + // From the Config and enable the modules. $auth_modules = $configFactory->get('social_auth_type'); if (isset($auth_modules) && is_array($auth_modules) && count($auth_modules) > 0) { -- GitLab