'MailgunMailSystem')); } /** * Implements hook_disable(). */ function mailgun_disable() { // Tell Mail System to remove Mailgun and restore to defaults. mailsystem_clear(array('mailgun_test' => 'MailgunMailSystem')); watchdog('mailgun', 'Mailgun has been disabled.'); } /** * Implements hook_requirements(). */ function mailgun_requirements($phase) { // Ensure translations don't break during installation. $t = get_t(); $requirements = array(); if ($phase === 'runtime') { $requirements['mailgun']['title'] = $t('Mailgun'); if (mailgun_check_library()) { $requirements['mailgun']['value'] = $t('The Mailgun library is installed correctly.'); $requirements['mailgun']['severity'] = REQUIREMENT_OK; } else { $requirements['mailgun']['value'] = $t('The Mailgun library has not been installed correctly.'); $requirements['mailgun']['severity'] = REQUIREMENT_ERROR; } } return $requirements; }