function phpmailer_preview_access in PHPMailer 6
Same name and namespace in other branches
- 5.2 phpmailer.module \phpmailer_preview_access()
- 6.3 phpmailer.module \phpmailer_preview_access()
- 6.2 phpmailer.module \phpmailer_preview_access()
- 7.4 phpmailer.module \phpmailer_preview_access()
- 7.3 phpmailer.module \phpmailer_preview_access()
Menu access callback; Determine access for HTML mail preview page.
1 string reference to 'phpmailer_preview_access'
- phpmailer_menu in ./
phpmailer.module - Implementation of hook_menu().
File
- ./
phpmailer.module, line 126 - This module integrates PHPMailer with Drupal, both as native drupal_mail() wrapper, and as part of the Mime Mail module.
Code
function phpmailer_preview_access() {
if (!strpos(variable_get('smtp_library', ''), 'phpmailer') && module_exists('mimemail') && variable_get('mimemail_alter', 0)) {
return user_access('administer phpmailer settings');
}
return FALSE;
}