Active
Project:
Simplenews Digest
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Aug 2011 at 13:34 UTC
Updated:
31 Aug 2011 at 13:35 UTC
I need to demo this to my client in real so I can't wait for the next scheduled delivery. A "send now" button, or a "send on next cron run" checkbox, on admin/settings/simplenews/digest_settings would be helpful.
For now one needs to perform these tests in order to demo:
1. set up admin/settings/simplenews/digest_settings as you normally would
2. create some new nodes
3. add the following lines just before the call to _simplenews_digest_cron_routine($current_time, $start_time, $end_time); in the simplenews_digest_cron() function.
$start_time = time() -86400;
$end_time = time() - 3600;
4. run cron
Cheers,
Albert.
Comments
Comment #1
alberto56 commentedNote that a testing/demo mode which does not require changes to the code has the added benefit of allowing automated testing via simpletest.