You are here

function hook_mail_edit_templates_alter in Mail Editor 8

Same name and namespace in other branches
  1. 2.0.x mail_edit.api.php \hook_mail_edit_templates_alter()

Allow the list of email templates to be modified.

Parameters

array $templates: The list of templates available to be edited by the module.

File

./mail_edit.api.php, line 49
Documentation of the hooks provided by Mail Edit.

Code

function hook_mail_edit_templates_alter(array &$templates) {

  // Disallow editing the 'confirm account cancel' message.
  unset($templates['user.email.cancel_confirm']);
}