/**
  * Return the "newsletter" button
  * @param array
  * @param string
  * @param string
  * @param string
  * @param string
  * @param string
  * @return string
  */
 public function newsletterIcon($row, $href, $label, $title, $icon, $attributes)
 {
     $objArchive = \NewsArchiveModel::findByPk($row['pid']);
     if (!$objArchive->newsletter || !$objArchive->newsletter_channel || !$objArchive->nc_notification) {
         return '';
     }
     // Toggle the record
     if (Input::get('newsletter')) {
         if ($this->sendNewsMessage(Input::get('newsletter'))) {
             Message::addConfirmation($GLOBALS['TL_LANG']['tl_news']['message_news_newsletter_confirm']);
         } else {
             Message::addError($GLOBALS['TL_LANG']['tl_news']['message_news_newsletter_error']);
         }
         $this->redirect($this->getReferer());
     }
     // Return just an image if newsletter was sent
     if ($row['newsletter']) {
         return Image::getHtml(str_replace('.png', '_.png', $icon), $label);
     }
     // Add the confirmation popup
     $intRecipients = \NewsletterRecipientsModel::countBy(array("pid=? AND active=1"), $objArchive->newsletter_channel);
     $attributes = 'onclick="if(!confirm(\'' . sprintf($GLOBALS['TL_LANG']['tl_news']['sendNewsletterConfirm'], $intRecipients) . '\'))return false;Backend.getScrollOffset()"';
     return '<a href="' . $this->addToUrl($href . '&newsletter=' . $row['id']) . '" title="' . specialchars($title) . '"' . $attributes . '>' . Image::getHtml($icon, $label) . '</a> ';
 }