Posted by birwel on August 23, 2010 at 2:36pm
1 follower
| Project: | Simplenews Digest |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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);