You are here

function newsletter_newsletter_list_sent in Newsletter 7

Implements hook_newsletter_list_sent().

File

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

Code

function newsletter_newsletter_list_sent($message) {
  $newsletter = $message['params']['newsletter'];
  $newsletter->field_newsletter_body[LANGUAGE_NONE][0] = array(
    'format' => $message['body_format'],
    'summary' => text_summary($message['body'], $message['body_format']),
    'value' => $message['body'],
  );
  entity_get_controller('newsletter_newsletter')
    ->save($newsletter);
}