You are here

function simplenews_cron in Simplenews 6.2

Same name and namespace in other branches
  1. 8.2 simplenews.module \simplenews_cron()
  2. 8 simplenews.module \simplenews_cron()
  3. 5 simplenews.module \simplenews_cron()
  4. 6 simplenews.module \simplenews_cron()
  5. 7.2 simplenews.module \simplenews_cron()
  6. 7 simplenews.module \simplenews_cron()
  7. 3.x simplenews.module \simplenews_cron()

Implementation of hook_cron().

4 calls to simplenews_cron()
SimplenewsSendTestCase::testDelete in tests/simplenews.test
Create a newsletter, send mails and then delete.
SimplenewsSendTestCase::testSendNowCron in tests/simplenews.test
Send a newsletter without using cron.
SimplenewsSendTestCase::testSendNowCronThrottle in tests/simplenews.test
Send a newsletter using cron and a low throttle.
simplenews_cron_action in simplenews_action/simplenews_action.module
Implementation of a Drupal action. Send pending simplenews newsletters.

File

./simplenews.module, line 879
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_cron() {
  module_load_include('inc', 'simplenews', 'includes/simplenews.mail');
  simplenews_mail_spool();
  simplenews_clear_spool();

  // Update sent status for newsletter admin panel.
  simplenews_send_status_update();
}