Active
Project:
Simplenews Digest
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2010 at 14:36 UTC
Updated:
23 Aug 2010 at 14:36 UTC
The default node type for simplenews content is "simplenews", however, drupal allows to change every nodetype name.
This corrects that error. I don't know if you can have more than one type with the "simplenews" property, I assumed that you have just one.
If you could have more than one newsletter nodetype, then the solution should be including a selector box.
For now, this solves the problem. (inject_node function , line 417)
$types = variable_get('simplenews_content_types', array('simplenews'));
$node->type = array_pop($types);