function mailgun_check_api_settings in Mailgun 7
Check if Mailgun API settings are configured.
Return value
bool TRUE if api settings are configured, FALSE otherwise.
1 call to mailgun_check_api_settings()
- mailgun_requirements in ./
mailgun.install - Implements hook_requirements().
File
- ./
mailgun.module, line 225 - Provides integration with Mailgun's email sending API.
Code
function mailgun_check_api_settings() {
return !empty(variable_get('mailgun_api_key', '')) && !empty(variable_get('mailgun_domain', ''));
}