You are here

function hook_mail_edit_templates_alter in Mail Editor 2.0.x

Same name and namespace in other branches
  1. 8 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 52
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']);
}