You are here

function simplenews_confirmation_combine in Simplenews 7.2

Same name and namespace in other branches
  1. 7 simplenews.module \simplenews_confirmation_combine()

Starts combining confirmation mails.

If combining mails is enabled, it is mandatory to call simplenews_send_combined_confirmation() after all subscription changes have been applied or no mails will be sent.

Parameters

$collect: TRUE to start combining mail conformations, FALSE to disable it.

Return value

TRUE if combining has been started, FALSE otherwise.

3 calls to simplenews_confirmation_combine()
simplenews_confirmation_send in ./simplenews.module
Send a confirmation mail.
simplenews_confirmation_send_combined in ./simplenews.module
Send collected confirmations.
simplenews_subscriptions_page_form_submit in includes/simplenews.subscription.inc
FAPI PAGE subscription form_submit.

File

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

Code

function simplenews_confirmation_combine($collect = NULL) {
  $static_collect =& drupal_static(__FUNCTION__, FALSE);
  if (isset($collect)) {
    $static_collect = $collect;
  }
  return $static_collect;
}