You are here

function phpmailer_preview_access in PHPMailer 6.2

Same name and namespace in other branches
  1. 5.2 phpmailer.module \phpmailer_preview_access()
  2. 6.3 phpmailer.module \phpmailer_preview_access()
  3. 6 phpmailer.module \phpmailer_preview_access()
  4. 7.4 phpmailer.module \phpmailer_preview_access()
  5. 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 164
Integrates the PHPMailer library for SMTP e-mail delivery.

Code

function phpmailer_preview_access() {
  if (module_exists('mimemail')) {
    return user_access('administer phpmailer settings');
  }
  return FALSE;
}