function sparkpost_test_access in Sparkpost email 7.2
Same name and namespace in other branches
- 7 sparkpost.module \sparkpost_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 'sparkpost_test_access'
- sparkpost_menu in ./
sparkpost.module - Implements hook_menu().
File
- ./
sparkpost.module, line 50 - Sparkpost integration.
Code
function sparkpost_test_access() {
$a = user_access('administer sparkpost');
$b = variable_get('sparkpost_api_key');
return $a & !empty($b);
}