function update_uninstall

Same name in other branches
  1. 9 core/modules/update/update.install \update_uninstall()
  2. 8.9.x core/modules/update/update.install \update_uninstall()
  3. 10 core/modules/update/update.install \update_uninstall()
  4. 11.x core/modules/update/update.install \update_uninstall()

Implements hook_uninstall().

File

modules/update/update.install, line 79

Code

function update_uninstall() {
    // Clear any variables that might be in use
    $variables = array(
        'update_check_frequency',
        'update_fetch_url',
        'update_last_check',
        'update_last_email_notification',
        'update_notification_threshold',
        'update_notify_emails',
        'update_max_fetch_attempts',
        'update_max_fetch_time',
    );
    foreach ($variables as $variable) {
        variable_del($variable);
    }
    $queue = DrupalQueue::get('update_fetch_tasks');
    $queue->deleteQueue();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.