function template_preprocess_mailgun_message in Mailgun 7
Prepares variables for mailgun-message.tpl.php.
Adds id/module/key-specific hook suggestions. For example, user password reset mail will have the following suggestions:
- mailgun_message__user_password_reset;
- mailgun_message__password_reset;
- mailgun_message__user.
See also
templates/mailgun-message.tpl.php
File
- ./
mailgun.module, line 240 - Provides integration with Mailgun's email sending API.
Code
function template_preprocess_mailgun_message(&$variables) {
$variables['theme_hook_suggestions'][] = 'mailgun_message__' . $variables['message']['id'];
$variables['theme_hook_suggestions'][] = 'mailgun_message__' . $variables['message']['key'];
$variables['theme_hook_suggestions'][] = 'mailgun_message__' . $variables['message']['module'];
}