You are here

function newsletter_manual_send in Newsletter 7

Menu callback; send a manual newsletter.

1 string reference to 'newsletter_manual_send'
newsletter_menu in ./newsletter.module
Implements hook_menu().

File

includes/newsletter.admin.inc, line 395
Admin page callbacks for the newsletter module.

Code

function newsletter_manual_send($list) {

  // Dont send.Just queue it for next cron run
  $remaining = variable_get('newsletter_for_next_cron', array());
  $remaining[$list->nlid] = TRUE;
  variable_set('newsletter_for_next_cron', $remaining);
  drupal_set_message(t('Newsletter queued for the next cron run'));
  return drupal_goto('admin/config/media/newsletter/create-send');
}