You are here

function hook_simplenews_source_cache_info in Simplenews 8

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

Expose SimplenewsSource cache implementations.

Return value

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 198
Hooks provided by the Simplenews module.

Code

function hook_simplenews_source_cache_info() {
  return array(
    'SimplenewsSourceCacheNone' => array(
      'label' => t('No caching'),
      'description' => t('This allows to theme each newsletter separately.'),
    ),
    'SimplenewsSourceCacheBuild' => array(
      '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.'),
    ),
  );
}