Hey Sime, I'd like to see a way of adding extra meta-data type fields to the sign up block, probably in a custom form_alter fashion, and have those fields display in the mailout lists subscriber table. This way a company website could gather a little more information about the people signing up for the newsletter and be able to see the info in the admin area.

What do you think?

Comments

sime’s picture

Done, you can add fields like this. However this mainly effects the subscribe block at this stage. You can't edit the values saved unless with custom sql - leave that for future versions. I've also added a CSV download so you can get all the values you have gathered with the block.

$conf = array(   
  'mailout_subscription_fields' => array(
    'howdidyou' => array(
      '#type' => 'textfield',
      '#title' => 'How did you hear about us',
      '#size' => 20,
    ),
    'receive' => array(
      '#type' => 'checkbox',
      '#title' => 'Receive promotions',
    ),
  ),
);
sime’s picture

Version: 5.x-1.0-rc1 » 5.x-1.0-rc2
Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.