'MandrillMailSystem')); } /** * Implements hook_disable(). */ function mandrill_disable() { // Tell mailsystem to remove mandrill and restore to defaults: mailsystem_clear(array('mandrill_test' => 'MandrillMailSystem')); watchdog('mandrill', 'Mandrill has been disabled.'); } /** * Deletes obsolete variables. */ function mandrill_update_7001() { variable_del('mandrill_status'); } /** * Rebuilds the registry, as we've moved some files around. */ function mandrill_update_7002() { // Rebuild the registry, we've moved some files around. registry_rebuild(); } /** * Implements hook_requirements(). */ function mandrill_requirements($phase) { $requirements = array(); // Ensure translations don't break at install time. $t = get_t(); if ($phase == 'update') { if (!module_exists('mailsystem')) { $requirements['mandrill'] = array( 'title' => $t('Mandrill'), 'value' => '7.x-1.4', 'description' => $t('Mail System module is required for Mandrill 7.x-1.3 or higher.'), 'severity' => REQUIREMENT_ERROR, ); } } return $requirements; } /** * Delete obsolete batch limit variable. */ function mandrill_update_7003() { variable_del('mandrill_batch_limit'); } /** * Clear cache to pick up new class name for DrupalMandrill class. */ function mandrill_update_7004() { cache_clear_all(); }