You are here

function hook_simplenews_source_cache_info in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 simplenews.api.php \hook_simplenews_source_cache_info()
  2. 8 simplenews.api.php \hook_simplenews_source_cache_info()
  3. 7.2 simplenews.api.php \hook_simplenews_source_cache_info()
  4. 7 simplenews.api.php \hook_simplenews_source_cache_info()

Expose SimplenewsSource cache implementations.

Return value

array An array keyed by the name of the class that provides the implementation, the array value consists of another array with the keys label and description.

Related topics

File

./simplenews.api.php, line 218
Hooks provided by the Simplenews module.

Code

function hook_simplenews_source_cache_info() {
  return [
    'SimplenewsSourceCacheNone' => [
      'label' => t('No caching'),
      'description' => t('This allows to theme each newsletter separately.'),
    ],
    'SimplenewsSourceCacheBuild' => [
      'label' => t('Cached content source'),
      'description' => t('This caches the rendered content to be sent for multiple recipients. It is not possible to use subscriber specific theming but tokens can be used for personalization.'),
    ],
  ];
}