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

joncup’s picture

Status: Needs review » Active

Spelling error,
The Subscriptions form on the account registration page should NOT be shown if there are no public lists.