function mandrill_theme in Mandrill 7.2
Implements hook_theme().
File
- ./
mandrill.module, line 399 - Enables Drupal to send email directly through Mandrill.
Code
function mandrill_theme() {
$path = drupal_get_path('module', 'mandrill') . '/theme';
return [
'mandrill_message' => [
'variables' => [
'module' => NULL,
'key' => NULL,
'recipient' => NULL,
'subject' => NULL,
'body' => NULL,
],
'template' => 'mandrill-message',
'pattern' => 'mandrill_message__',
'file' => 'mandrill.theme.inc',
'mail theme' => TRUE,
'path' => $path,
],
];
}