I've been looking for this.
My first instinct is that if the body field is em...

Contribution Date
Technology
Contribution Project
Contribution Details

I've been looking for this.

My first instinct is that if the body field is empty (or renders to empty), it should not add an edition. But I realize that simplenews passes the whole node for rendering to the theming system and there might be other fields doing the rendering. I think this is best left to custom code but simplenews_scheduler should allow for a way to support it. The obvious hook that comes to mind is hook_simplenews_scheduler_edition_node_alter.

Right now, that wouldn't work because the very next line says $edition_node->save() and there is no handler for an exception. Should we make it so that if the alter hook sets a property, e.g. simplenews_scheduler_skip_edition to TRUE, it should just exit?

Contribution Author
Files count
0
Patches count
0