summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Bergren2008-10-02 23:49:34 (GMT)
committer Brandon Bergren2008-10-02 23:49:34 (GMT)
commit15ea642ca3b12d845259b1e43f3985a7c59d6854 (patch)
tree8ed6cba95832c56eee2bcc195515703f4e32d3df
parentde21cf210f8f12cb3ec8fbdc60cc1415e2b75920 (diff)
Repair broken update that failed to change the weight of location_fax and location_phone. (Preemptive backport of uncommitted Drupal 6 changes.)
-rw-r--r--contrib/location_fax/location_fax.install12
-rw-r--r--contrib/location_phone/location_phone.install12
2 files changed, 22 insertions, 2 deletions
diff --git a/contrib/location_fax/location_fax.install b/contrib/location_fax/location_fax.install
index 0238134..8998f1e 100644
--- a/contrib/location_fax/location_fax.install
+++ b/contrib/location_fax/location_fax.install
@@ -71,7 +71,17 @@ function location_fax_update_5300() {
*/
function location_fax_update_5301() {
$ret = array();
+ // This update was moved to update 5302.
+ return $ret;
+}
+
+/**
+ * Location 3.0 update 2.
+ * Change weight of module.
+ */
+function location_fax_update_5302() {
+ $ret = array();
// Change weight.
- $ret[] = update_sql("UPDATE {system} SET weight = 1 WHERE name = '%s' AND type = '%s'", 'location_fax', 'module');
+ $ret[] = update_sql("UPDATE {system} SET weight = 1 WHERE name = 'location_fax' AND type = 'module'");
return $ret;
}
diff --git a/contrib/location_phone/location_phone.install b/contrib/location_phone/location_phone.install
index ddf215e..b21c3a5 100644
--- a/contrib/location_phone/location_phone.install
+++ b/contrib/location_phone/location_phone.install
@@ -78,7 +78,17 @@ function location_phone_update_5300() {
*/
function location_phone_update_5301() {
$ret = array();
+ // This update was moved to update 5302.
+ return $ret;
+}
+
+/**
+ * Location 3.0 update 2.
+ * Change weight of module.
+ */
+function location_phone_update_5302() {
+ $ret = array();
// Change weight.
- $ret[] = update_sql("UPDATE {system} SET weight = 1 WHERE name = '%s' AND type = '%s'", 'location_phone', 'module');
+ $ret[] = update_sql("UPDATE {system} SET weight = 1 WHERE name = 'location_phone' AND type = 'module'");
return $ret;
}