diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-07-11 15:15:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-07-11 15:15:40 +0000 |
commit | 6ec2ff7e1563f7da82f9411878e2c7482b671983 (patch) | |
tree | 484b05be33ba384db140fa8f3f3c7386fa2c63f9 /modules/update/update.install | |
parent | 70f9297c100eaa1736b8e136a2e32c9d87b56de4 (diff) | |
download | brdo-6ec2ff7e1563f7da82f9411878e2c7482b671983.tar.gz brdo-6ec2ff7e1563f7da82f9411878e2c7482b671983.tar.bz2 |
- Patch #94154 by dww, Earl et al: update notifications for Drupal!
Woot, woot! :)
Diffstat (limited to 'modules/update/update.install')
-rw-r--r-- | modules/update/update.install | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/update/update.install b/modules/update/update.install new file mode 100644 index 000000000..8c974dbe2 --- /dev/null +++ b/modules/update/update.install @@ -0,0 +1,30 @@ +<?php +// $Id$ + +/** + * Implementation of hook_install(). + */ +function update_install() { + // Create cache table. + drupal_install_schema('update'); +} + +/** + * Implementation of hook_uninstall(). + */ +function update_uninstall() { + // Remove cache table. + drupal_uninstall_schema('update'); + // 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(); +} |