Skip to content

Commit

Permalink
Issue backdrop-contrib#19: Modify email notifications code for better…
Browse files Browse the repository at this point in the history
… compatibility with other modules.
  • Loading branch information
bugfolder committed Nov 12, 2023
1 parent bdae6a6 commit dc45c47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions profile.module
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ function profile_form_before_user_register_submit_handler(&$form, &$form_state)
// Temporary disable the notification about registration.
$config->set($register_op, FALSE);
}
$config->save();
}

/**
Expand Down Expand Up @@ -819,6 +820,7 @@ function profile_form_after_user_register_submit_handler(&$form, &$form_state) {
$config->set($register_op, TRUE);
}
}
$config->save();

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

0 comments on commit dc45c47

Please sign in to comment.