You are here

public function SimplenewsSourceTest::getHeaders in Simplenews 7.2

Same name and namespace in other branches
  1. 7 includes/simplenews.source.inc \SimplenewsSourceTest::getHeaders()

Returns the mail headers.

Parameters

$headers: The default mail headers.

Return value

Mail headers as an array.

Overrides SimplenewsSourceInterface::getHeaders

File

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

Class

SimplenewsSourceTest
Example source implementation used for tests.

Code

public function getHeaders(array $headers) {
  $headers['X-Simplenews-Test'] = 'OK';
  return $headers;
}