summaryrefslogtreecommitdiff
path: root/modules/update/update.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-01-15 08:29:25 +0000
committerDries Buytaert <dries@buytaert.net>2008-01-15 08:29:25 +0000
commit63a15b383c27139b5544810f0b6105777165fd19 (patch)
tree59bd7c8ad9c4a83aedf3f07371a0af79d9111449 /modules/update/update.module
parent945b337502b4e1928ebeccd8bbd940b0522b4afb (diff)
downloadbrdo-63a15b383c27139b5544810f0b6105777165fd19.tar.gz
brdo-63a15b383c27139b5544810f0b6105777165fd19.tar.bz2
- Patch #210141 by dww (with some modifications by me): implement hook_flush_caches().
Diffstat (limited to 'modules/update/update.module')
-rw-r--r--modules/update/update.module10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/update/update.module b/modules/update/update.module
index 33747ff47..887078334 100644
--- a/modules/update/update.module
+++ b/modules/update/update.module
@@ -337,6 +337,16 @@ function update_get_available($refresh = FALSE) {
}
/**
+ * Implementation of hook_flush_caches(). The function update.php (among others)
+ * calls this hook to flush the caches. Since we're running update.php, we are
+ * likely to install a new version of something, in which case, we want to check
+ * for available update data again.
+ */
+function update_flush_caches() {
+ return array('cache_update');
+}
+
+/**
* Invalidates any cached data relating to update status.
*/
function update_invalidate_cache() {