diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-09-26 00:13:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-09-26 00:13:19 +0000 |
commit | dba2ebb118a25ff6ed9bcc6a59cc42c20d55ad66 (patch) | |
tree | 3190a36dc331b3f1cf6f465fccc01527387dc6cd /modules/contact/contact.install | |
parent | e1d4b4145945d6097c9b9a5206b5283560f03476 (diff) | |
download | brdo-dba2ebb118a25ff6ed9bcc6a59cc42c20d55ad66.tar.gz brdo-dba2ebb118a25ff6ed9bcc6a59cc42c20d55ad66.tar.bz2 |
- Patch #570142 by Dave Reid | Dries: get rid of the admin/structure/contact/settings page.
Diffstat (limited to 'modules/contact/contact.install')
-rw-r--r-- | modules/contact/contact.install | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/modules/contact/contact.install b/modules/contact/contact.install index 3e22f41bb..7b3e57b71 100644 --- a/modules/contact/contact.install +++ b/modules/contact/contact.install @@ -11,8 +11,8 @@ */ function contact_uninstall() { variable_del('contact_default_status'); - variable_del('contact_form_information'); - variable_del('contact_hourly_threshold'); + variable_del('contact_threshold_limit'); + variable_del('contact_threshold_window'); } /** @@ -73,3 +73,22 @@ function contact_schema() { return $schema; } + +/** + * @defgroup updates-6.x-to-7.x Contact updates from 6.x to 7.x + * @{ + */ + +/** + * Rename the threshold limit variable. + */ +function contact_update_7000() { + variable_set('contact_threshold_limit', variable_get('contact_hourly_threshold', 5)); + variable_del('contact_hourly_threshold'); + return array(); +} + +/** + * @} End of "defgroup updates-6.x-to-7.x" + * The next series of updates should start at 8000. + */ |