summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-04-16 11:35:52 +0000
committerDries Buytaert <dries@buytaert.net>2008-04-16 11:35:52 +0000
commit76151a8bc900ebb38c76170283a05df791311f76 (patch)
treedf9d3103010eb9452a55e2a0e901faf30d5e58bc /modules/system/system.install
parent46546ef478615dc1ac371c12cf392cabc1901cba (diff)
downloadbrdo-76151a8bc900ebb38c76170283a05df791311f76.tar.gz
brdo-76151a8bc900ebb38c76170283a05df791311f76.tar.bz2
- Patch #245504 by catch, David_Rothstein, Freso, et al: removed the throttle module from Drupal core.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install22
1 files changed, 15 insertions, 7 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index a8aa9d927..6d9625774 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -1149,13 +1149,6 @@ function system_schema() {
'default' => 0,
'size' => 'tiny',
),
- 'throttle' => array(
- 'description' => t('Boolean indicating whether this item is disabled when the throttle.module disables throttleable items.'),
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- 'size' => 'tiny',
- ),
'bootstrap' => array(
'description' => t("Boolean indicating whether this module is loaded during Drupal's early bootstrapping phase (e.g. even before the page cache is consulted)."),
'type' => 'int',
@@ -2853,6 +2846,21 @@ function system_update_7004(&$sandbox) {
}
/**
+ * Remove throttle columns and variables.
+ */
+function system_update_7005() {
+ $ret = array();
+ db_drop_field($ret, 'blocks', 'throttle');
+ db_drop_field($ret, 'system', 'throttle');
+ variable_del('throttle_user');
+ variable_del('throttle_anonymous');
+ variable_del('throttle_level');
+ variable_del('throttle_probability_limiter');
+
+ return $ret;
+}
+
+/**
* @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000.
*/