You are here

mailgun_email_templates_examples.module in Mailgun 8

File

modules/mailgun_email_templates_examples/mailgun_email_templates_examples.module
View source
<?php

/**
 * @file
 * Contains mailgun_email_templates_examples.module.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function mailgun_email_templates_examples_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the mailgun_email_templates_examples module.
    case 'help.page.mailgun_email_templates_examples':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Provides examples of email templates. Allows to send nice HTML emails out-of-the-box.') . '</p>';
      return $output;
    default:
  }
}

/**
 * Implements hook_theme().
 */
function mailgun_email_templates_examples_theme($existing, $type, $theme, $path) {
  return [
    'mailgun__test_form_email' => [
      'base hook' => 'mailgun',
    ],
    'mailgun__password_reset' => [
      'base hook' => 'mailgun',
    ],
    'mailgun__user' => [
      'base hook' => 'mailgun',
    ],
  ];
}