Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It seems this module does nothing for new users. The code for the function mailman_manager_user() has this comment:
/**
* Implementation of hook_user()
* Checks whether an email address is subscribed to the mailinglist
* when a new user signs up. If so, changes uid from 0 to the new uid
* in sn_subscriptions so that the user's subscription status is known
* when he logs in.
*/
function mailman_manager_user($op, &$edit, &$account, $category = NULL) {
But in fact, the code simply looks like that for the mailing list tab under user/edit.
How can the code be rectified so that it checks if a user is already in the mailing list, and if they are not, automatically subscribe them (perhaps based on the value of an additional list setting)?
Thanks,
Chris
Comments
Comment #1
cboshuizen CreditAttribution: cboshuizen commentedAny ideas? Right now I have found a work around by redirecting new users to the mailman page after registration, but it is not optimal. I'd love have this documented but absent functionality!
Comment #2
arturoramos CreditAttribution: arturoramos commentedThat "documentation" is a vestige of the sn_subscriptions module (from which the code was replicated) as the comment indicates. There is no way for Drupal to know whether a new Drupal user is already signed up for a Mailman mailing list as there is no true two-way communication between Mailman and this module.
I am closing out this issue because this was never meant to be a functionality of the module and there is really no way (that I can think of) of implementing such a function even if we wanted to.
Sorry.