You are here

function mail_logger_module_implements_alter in Mail Logger 7

Implements hook_module_implements_alter(). Force our mail_alter to go last so everyone else gets a crack at the mail before we try to log it.

File

./mail_logger.module, line 87
Mail Logger module logs all outgoing mail that passes through the drupal_mail function.

Code

function mail_logger_module_implements_alter(&$implementations, $hook) {

  // Fire our mail_alter last.
  if ($hook == 'mail_alter' && isset($implementations['mail_logger'])) {
    $group = $implementations['mail_logger'];
    unset($implementations['mail_logger']);
    $implementations['mail_logger'] = $group;
  }
}