You are here

function forward_theme_suggestions_forward in Forward 4.0.x

Same name and namespace in other branches
  1. 8.3 forward.module \forward_theme_suggestions_forward()
  2. 8.2 forward.module \forward_theme_suggestions_forward()
  3. 4.x forward.module \forward_theme_suggestions_forward()

Implements hook_theme_suggestions_HOOK().

File

./forward.module, line 80
Allows forwarding of entities by email.

Code

function forward_theme_suggestions_forward(array $variables) {
  $suggestions = [];
  $suggestions[] = 'forward__' . $variables['email_format'];
  $suggestions[] = 'forward__' . $variables['email_format'] . '__' . $variables['view_mode'];
  return $suggestions;
}