You are here

function SimplenewsSourceNode::getFromFormatted in Simplenews 7

Implements SimplenewsSourceInterface::getFromFormatted().

Overrides SimplenewsSourceInterface::getFromFormatted

1 call to SimplenewsSourceNode::getFromFormatted()
SimplenewsSourceNode::getHeaders in includes/simplenews.source.inc
Implements SimplenewsSourceInterface::getHeaders().

File

includes/simplenews.source.inc, line 541
Contains SimplenewsSource interface and implementations.

Class

SimplenewsSourceNode
Simplenews source implementation based on nodes for a single subscriber.

Code

function getFromFormatted() {

  // Windows based PHP systems don't accept formatted email addresses.
  if (drupal_substr(PHP_OS, 0, 3) == 'WIN') {
    return $this
      ->getFromAddress();
  }
  return '"' . addslashes(mime_header_encode($this
    ->getCategory()->from_name)) . '" <' . $this
    ->getFromAddress() . '>';
}