You are here

function queue_mail_module_implements_alter in Queue Mail 8

Same name and namespace in other branches
  1. 7 queue_mail.module \queue_mail_module_implements_alter()

Implements hook_module_implements_alter().

File

./queue_mail.module, line 45
The Queue Mail module.

Code

function queue_mail_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'mail_alter') {

    // Ensure that our hook_mail_alter implementation is always called last.
    if (isset($implementations['queue_mail'])) {
      $group = $implementations['queue_mail'];
      unset($implementations['queue_mail']);

      // Now add it back, which will ensure we are called last.
      $implementations['queue_mail'] = $group;
    }
  }
}