You are here

function newsletter_set_watchdog in Newsletter 7.2

Same name and namespace in other branches
  1. 7 newsletter.module \newsletter_set_watchdog()

Sets a watchdog message for the just sent newsletter.

Parameters

$id: The newsletter id.

$title: The subscriber's list title.

$mail: The subscriber's e-mail.

$result: The result from drupal_mail_system.

2 calls to newsletter_set_watchdog()
NewsletterAutomated::send in includes/newsletter.automated.inc
Replaces tokens and sends the current newsletter.
NewsletterCustom::send in includes/newsletter.custom.inc
Replaces tokens, sends the custom newsletter and updates stats.

File

./newsletter.module, line 465
Defines menu items for newsletter administration, permissions and basic drupal hooks.

Code

function newsletter_set_watchdog($id, $title, $mail, $result) {
  watchdog('newsletter', 'Newsletter list with newsletter id @news_id and list name @list_name sent to @sub with status code @status.', array(
    '@news_id' => $id,
    '@list_name' => $title,
    '@sub' => $mail,
    '@status' => $result,
  ), WATCHDOG_ERROR);
}