Auto subscribe

Events happening in the community are now at Drupal community events on www.drupal.org.
opegasus's picture

Auto subscriber new users (specific roles) to SimpleNews in Drupal 6

Hey all,

I am using Simple News in a Drupal 6 install.
I would like to create an 'auto subscribe' feature for specific roles (at least one for now) so that when someone
subscribes to the site for role 'X' they will automatically be subscribed to the newsletter.

In searches I found a PHP module someone built but it looks like it would auto subscribe anyone (regardless of role)
to the newsletter, not so good.

aic_mailer.module
<?php
/**
* Implementation of hook_user().
*
*/
function aic_mailer_user($op, &$edit, &$account, $category = NULL) {

Read more
Subscribe with RSS Syndicate content