You are here

function subscriptions_update_7001 in Subscriptions 7

Remove the bug-fix SubscriptionsMailSystem, we need Drupal 7.5+ from now.

File

./subscriptions.install, line 264
Subscriptions module installation.

Code

function subscriptions_update_7001() {
  $mailsystem = variable_get('mail_system', array());
  if (isset($mailsystem['default-system']) && $mailsystem['default-system'] == 'SubscriptionsMailSystem') {
    unset($mailsystem['default-system']);
    if (empty($mailsystem)) {
      variable_del('mail_system');
    }
    else {
      variable_set('mail_system', $mailsystem);
    }
  }
}