<?php
function update_install() {
drupal_install_schema('update');
_update_remove_update_status_variables();
}
function update_uninstall() {
drupal_uninstall_schema('update');
$variables = array(
'update_check_frequency',
'update_fetch_url',
'update_last_check',
'update_notification_threshold',
'update_notify_emails',
);
foreach ($variables as $variable) {
variable_del($variable);
}
menu_rebuild();
}
function update_schema() {
$schema['cache_update'] = drupal_get_schema_unprocessed('system', 'cache');
$schema['cache_update']['description'] = 'Cache table for the Update module to store information about available releases, fetched from central server.';
return $schema;
}
function _update_remove_update_status_variables() {
variable_del('update_status_settings');
variable_del('update_status_notify_emails');
variable_del('update_status_check_frequency');
variable_del('update_status_notification_threshold');
variable_del('update_status_last');
variable_del('update_status_fetch_url');
}
function update_update_6000() {
_update_remove_update_status_variables();
return array();
}