I set default value for nletter format to HTML but it keeps getting back to plain text when creating newsletter and i have to set it to HTML each time again.
I have also http://drupal.org/project/simplenews_content_selection installed, maybe this module breaks defaults?
Comments
Comment #1
marko b commentedTried it and it is true, when creating NL without this module above then HTML is fine, so seems that SCS module doesnt respect defaults. Please admin move this issue to that module.
Comment #2
simon georges commentedYou can do it yourself by changing the "Project" field. Anyway, done.
Comment #3
marko b commentedDidnt know i could, thanx.
Comment #4
marko b commentedThe part of function _scs_create_newsletter where simplenews nodes is saved doesn't save
$newsletter->simplenews['s_format'] = strtolower(variable_get('scs_format', 'plain'));So there is no s_fomat variable later when the form is build in simplenews.module on line 403
That is why it is alyways plain text as default. Hope this is at least fixed in D7 version.
Comment #5
Anonymous (not verified) commentedTo solve this in function function _scs_create_newsletter I added this after node_save($newsletter);
$param_array['tid'] = 0; // We do not know the tid at that time
$param_array['s_status'] = 0; // send status is 0 at that time
$param_array['advanced']['s_format'] = $newsletter->simplenews['s_format'];
$param_array['advanced']['priority'] = $newsletter->priority;
$param_array['advanced']['receipt'] = $newsletter->receipt;
simplenews_newsletter_update($newsletter,$param_array);
Comment #6
vuilClose the issue as Fixed. Thank you.