You are here

function mail_safety_module_implements_alter in Mail Safety 7

Same name and namespace in other branches
  1. 8 mail_safety.module \mail_safety_module_implements_alter()
  2. 7.2 mail_safety.module \mail_safety_module_implements_alter()

Implements hook_module_implements_alter().

Make sure our hook is called last.

File

./mail_safety.module, line 244
The core Mail Safety module file

Code

function mail_safety_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'mail_alter' && isset($implementations['mail_safety'])) {

    // Move mail_safety_mail_alter() to the end of the list.
    $group = $implementations['mail_safety'];
    unset($implementations['mail_safety']);
    $implementations['mail_safety'] = $group;
  }
}