Skip to content

Commit dc45c47

Browse files
committed
Issue backdrop-contrib#19: Modify email notifications code for better compatibility with other modules.
1 parent bdae6a6 commit dc45c47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

profile.module

+2
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ function profile_form_before_user_register_submit_handler(&$form, &$form_state)
780780
// Temporary disable the notification about registration.
781781
$config->set($register_op, FALSE);
782782
}
783+
$config->save();
783784
}
784785

785786
/**
@@ -819,6 +820,7 @@ function profile_form_after_user_register_submit_handler(&$form, &$form_state) {
819820
$config->set($register_op, TRUE);
820821
}
821822
}
823+
$config->save();
822824

823825
// Get the values that we need to define which notification
824826
// should be sent to the user. Generally this is a trimmed version

0 commit comments

Comments
 (0)