You are here

function hook_simplenews_source_cache_info in Simplenews 7

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. 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

1 function implements hook_simplenews_source_cache_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

simplenews_simplenews_source_cache_info in ./simplenews.module
Implements hook_simplenews_source_cache_info().
1 invocation of hook_simplenews_source_cache_info()
simplenews_get_source_caches in ./simplenews.module
Returns the available simplenews sources.

File

./simplenews.api.php, line 199
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.'),
    ),
  );
}