Active
Project:
Mailout
Version:
5.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2008 at 08:32 UTC
Updated:
28 Aug 2008 at 23:50 UTC
Subscriptions form on registration page should now be shown if there are no public lists.
I didn't make an actual patch yet, just one small change to hook_form_alter somewhere around line 117, added if ($options)
if ( $form_id == 'user_register' && variable_get('mailout_subscriptions_in_register', TRUE)) {
// We don't need to double up html format questions.
foreach(mailout_get_lists() AS $list) {
if ($list->public) {
$options[$list->id] = $list->list_name;
}
}
if ($options) {
$form['mailout'] = array(
'#type' => 'checkboxes',
'#options' => $options,
'#title' => t('Subscriptions'),
);
}
}
Comments
Comment #1
joncup commentedSpelling error,
The Subscriptions form on the account registration page should NOT be shown if there are no public lists.