From dba2ebb118a25ff6ed9bcc6a59cc42c20d55ad66 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 26 Sep 2009 00:13:19 +0000 Subject: - Patch #570142 by Dave Reid | Dries: get rid of the admin/structure/contact/settings page. --- modules/contact/contact.install | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'modules/contact/contact.install') 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. + */ -- cgit v1.2.3