You are here

function htmlmail_theme_suggestions_htmlmail_alter in HTML Mail 8

Same name and namespace in other branches
  1. 8.3 htmlmail.module \htmlmail_theme_suggestions_htmlmail_alter()

Implements hook_theme_suggestions_HOOK_alter().

File

./htmlmail.module, line 149
Default file for HTML Mail module.

Code

function htmlmail_theme_suggestions_htmlmail_alter(array &$suggestions, array $variables) {
  $module = $variables['message']['module'];
  $key = $variables['message']['key'];
  $suggestion = 'htmlmail__' . $module;
  $suggestions[] = $suggestion;
  $suggestion .= '__' . $key;
  $suggestions[] = $suggestion;
}