You are here

function phpmailer_settings_access in PHPMailer 6

Same name and namespace in other branches
  1. 5.2 phpmailer.module \phpmailer_settings_access()

Block access to settings page if Mime Mail module is enabled.

1 string reference to 'phpmailer_settings_access'
phpmailer_menu in ./phpmailer.module
Implementation of hook_menu().

File

./phpmailer.module, line 116
This module integrates PHPMailer with Drupal, both as native drupal_mail() wrapper, and as part of the Mime Mail module.

Code

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