You are here

function simplenews_theme_suggestions_simplenews_newsletter_body in Simplenews 8

Same name and namespace in other branches
  1. 8.2 simplenews.module \simplenews_theme_suggestions_simplenews_newsletter_body()
  2. 3.x simplenews.module \simplenews_theme_suggestions_simplenews_newsletter_body()

Implements hook_theme_suggestions_HOOK().

File

./simplenews.module, line 1000
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_theme_suggestions_simplenews_newsletter_body(array $variables) {
  return array(
    'simplenews_newsletter_body__' . $variables['elements']['#newsletter']
      ->id(),
    'simplenews_newsletter_body__' . $variables['elements']['#view_mode'],
    'simplenews_newsletter_body__' . $variables['elements']['#newsletter']
      ->id() . '__' . $variables['elements']['#view_mode'],
  );
}