You are here

function phpmailer_preview_access in PHPMailer 7.4

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. 6.2 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
Implements hook_menu().

File

./phpmailer.module, line 169
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;
}