You are here

function mandrill_test_access in Mandrill 7

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

Access callback for sending test email.

Return value

bool True if current user has access to send test messages

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

File

./mandrill.module, line 66
Enables Drupal to send email directly through Mandrill.

Code

function mandrill_test_access() {
  $a = user_access('administer mandrill');
  $b = variable_get('mandrill_api_key');
  return $a & !empty($b);
}