35 lines
794 B
Plaintext
35 lines
794 B
Plaintext
<?php
|
|
// $Id$
|
|
|
|
/**
|
|
* @file
|
|
* Install, update and uninstall functions for the update module.
|
|
*/
|
|
|
|
/**
|
|
* Implement hook_uninstall().
|
|
*/
|
|
function update_uninstall() {
|
|
// Clear any variables that might be in use
|
|
$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();
|
|
}
|
|
|
|
/**
|
|
* Implement hook_schema().
|
|
*/
|
|
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;
|
|
}
|