function newsletter_add_open_rate_image in Newsletter 7
1 call to newsletter_add_open_rate_image()
- newsletter_mail in ./
newsletter.module - Implements hook_mail().
File
- ./
newsletter.module, line 1129 - Defines menu items for newsletter administration, permissions and basic drupal hooks.
Code
function newsletter_add_open_rate_image($hash, $newsletter) {
$params = array(
'absolute' => TRUE,
'query' => array(
'source' => 'newsletter',
'nnid' => $newsletter->nnid,
),
);
$url = url('newsletter/statistics/' . $hash, $params);
$image = "<img src='{$url}' width = '1' height = '1' />";
return $image;
}