summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArto Bendiken2006-11-27 16:43:12 (GMT)
committerArto Bendiken2006-11-27 16:43:12 (GMT)
commitea6683e28dd66f167a13ff1ba48fb01b14b982b9 (patch)
treea279b62bccf9eb1d18844a5846aa6f6cb6a9e4c7
parent4bd5b5497ca640dd64c0463aa64b2f29a15f684c (diff)
Added code for module weight update to the install hook to ensure Boost is loaded early on in the Drupal bootstrap.
-rw-r--r--boost.install2
1 files changed, 2 insertions, 0 deletions
diff --git a/boost.install b/boost.install
index 3696c9f..5c10f7b 100644
--- a/boost.install
+++ b/boost.install
@@ -12,6 +12,8 @@
* Implementation of hook_install(). Installs the current version of the database schema.
*/
function boost_install() {
+ // Ensure that the module is loaded early in the bootstrap:
+ db_query("UPDATE {system} SET weight = -90 WHERE name = 'boost'");
// Forcibly disable Drupal's built-in SQL caching to prevent any conflicts of interest:
if (variable_get('cache', CACHE_DISABLED) != CACHE_DISABLED) {