You are here

function mandrill_test_access in Mandrill 6

Same name and namespace in other branches
  1. 8 mandrill.module \mandrill_test_access()
  2. 7.2 mandrill.module \mandrill_test_access()
  3. 7 mandrill.module \mandrill_test_access()

Access callback for sending test email.

Return value

bool

1 string reference to 'mandrill_test_access'
mandrill_menu in ./mandrill.module
Implements hook_menu().

File

./mandrill.module, line 64
Enables Drupal to send email directly through MailChimp STS.

Code

function mandrill_test_access() {
  return user_access('administer mandrill') & variable_get('mandrill_status', MANDRILL_STATUS_OFF) != MANDRILL_STATUS_OFF;
}