summaryrefslogtreecommitdiff
path: root/modules/update/update.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-10-13 02:14:05 +0000
committerDries Buytaert <dries@buytaert.net>2009-10-13 02:14:05 +0000
commit9058a8984d76ae238bdc3a45a1c41dfa9012445c (patch)
treea9dfd57d0dc97b22f4199eda99dc196ba6ba458d /modules/update/update.install
parentcad226e60bc5827050789d4900f1a17907c203d3 (diff)
downloadbrdo-9058a8984d76ae238bdc3a45a1c41dfa9012445c.tar.gz
brdo-9058a8984d76ae238bdc3a45a1c41dfa9012445c.tar.bz2
- Patch #597484 by dww: use the Queue API to fetch available update data.
Diffstat (limited to 'modules/update/update.install')
-rw-r--r--modules/update/update.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/update/update.install b/modules/update/update.install
index 0c2713149..7087cf65b 100644
--- a/modules/update/update.install
+++ b/modules/update/update.install
@@ -7,6 +7,14 @@
*/
/**
+ * Implement hook_install().
+ */
+function update_install() {
+ $queue = DrupalQueue::get('update_fetch_tasks');
+ $queue->createQueue();
+}
+
+/**
* Implement hook_uninstall().
*/
function update_uninstall() {
@@ -17,11 +25,15 @@ function update_uninstall() {
'update_last_check',
'update_notification_threshold',
'update_notify_emails',
+ 'update_max_fetch_attempts',
+ 'update_max_fetch_time',
);
foreach ($variables as $variable) {
variable_del($variable);
}
menu_rebuild();
+ $queue = DrupalQueue::get('update_fetch_tasks');
+ $queue->deleteQueue();
}
/**
@@ -32,3 +44,13 @@ function update_schema() {
$schema['cache_update']['description'] = 'Cache table for the Update module to store information about available releases, fetched from central server.';
return $schema;
}
+
+/**
+ * Create a queue to store tasks for requests to fetch available update data.
+ */
+function update_update_7000() {
+ module_load_include('inc', 'system', 'system.queue');
+ $queue = DrupalQueue::get('update_fetch_tasks');
+ $queue->createQueue();
+}
+