function phpmailer_registry_files_alter in PHPMailer 7.3
Same name and namespace in other branches
- 7.4 phpmailer.module \phpmailer_registry_files_alter()
Implements hook_registry_files_alter().
@todo Consider to move this into Libraries API.
File
- ./
phpmailer.module, line 181 - Integrates the PHPMailer library for SMTP e-mail delivery.
Code
function phpmailer_registry_files_alter(&$files, $modules) {
$library_path = libraries_get_path('phpmailer');
if (!$library_path) {
return;
}
foreach (array(
'class.phpmailer.php',
'class.smtp.php',
) as $filename) {
$files[$library_path . '/' . $filename] = array(
'module' => 'phpmailer',
'weight' => 0,
);
}
}