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) {
Webform in block follow up
At our meeting the other night, I asked about adding a Subscribe To Mailing List form, with input field for email address and Submit button. Turns out the last upgrade to WebForm includes an option to expose in Block. So, I have chosen to use Webform for all three types of sub forms needed on the site.
The method to embedded a Webform in a view to get it into a block is not needed. And the module "Webform in Block" is not needed.
The best part is other enhancements are present as well, and I wanted a few of those.
Read more