summaryrefslogtreecommitdiff
path: root/modules/update/update.install
diff options
context:
space:
mode:
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();
+}