You are here

function mailgun_theme in Mailgun 7

Same name and namespace in other branches
  1. 8 mailgun.module \mailgun_theme()

Implements hook_theme().

File

./mailgun.module, line 76
Provides integration with Mailgun's email sending API.

Code

function mailgun_theme($existing, $type, $theme, $path) {
  return array(
    'mailgun_message' => array(
      'variables' => array(
        'subject' => NULL,
        'body' => NULL,
        'message' => array(),
      ),
      'template' => 'mailgun-message',
      'path' => drupal_get_path('module', 'mailgun') . '/templates',
      'mail theme' => TRUE,
    ),
  );
}