Please support Mailman Groups module
netgenius - August 8, 2008 - 15:11
| Project: | Mailman Manager |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Please take a look at this when you get a moment - http://drupal.org/project/mailman_groups
All I need is a documented way of adding, editing and deleting subscriptions. Currently I am calling undocumented internal functions in Mailman Manager - that works, but I want to avoid things getting broken by future releases of MM.
Further integration might be nice - for example my module currently hooks form_modify to remove form elements that you put on the user profile form - it would be more elegant if the two modules communicated.
Thanks.

#1
@netgenuis I've frequently met folks at conferences who claim to have make better ways to "API" call into mailman -- but so far no code has shown up. Sound like you're finding the same frustration - that there's no really nice way, besides an updocumented internal function, to wrangle mailman.
I'll put a good look of mailman_groups on my todo list.
#2
@netgenuis
how about something like this
/**
* public function, that other modules can call to subscribe someone to a list
* @param $user_id the drupal user id
* @param $list_id which mailing list
*/
function mailman_manager_subscribe_user($user_id, $list_id) {
}
#3
@shiny Hi, thanks for the reply...
Looks sufficient for joining at least. Maybe a third parameter of $action to define subscribe/unsubscribe etc. Also a callback (a function in *my* module) to define whether list is accessible or not (so whether or not it should be displayed on the User Profile edit page).
More info here - http://drupal.org/node/293074 - that's my conversation with the maintainer of User Mailman Register where I have the same issue. I don't mind designing an interface and resulting patches.
So really I just wanted to open communication - I don't need anything specific, other than to know that in principle you're not against such a thing - I'll probably do the work!