You are here

function phpmailer_settings_access in PHPMailer 5.2

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

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

1 call to phpmailer_settings_access()
phpmailer_menu in ./phpmailer.module
Implementation of hook_menu().

File

./phpmailer.module, line 171
Integrates the PHPMailer library for SMTP e-mail delivery.

Code

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