summaryrefslogtreecommitdiff
path: root/modules/update/update.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-07-11 15:15:40 +0000
committerDries Buytaert <dries@buytaert.net>2007-07-11 15:15:40 +0000
commit6ec2ff7e1563f7da82f9411878e2c7482b671983 (patch)
tree484b05be33ba384db140fa8f3f3c7386fa2c63f9 /modules/update/update.install
parent70f9297c100eaa1736b8e136a2e32c9d87b56de4 (diff)
downloadbrdo-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.install30
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();
+}