summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Bergren2008-12-11 16:44:11 (GMT)
committer Brandon Bergren2008-12-11 16:44:11 (GMT)
commitd712be2d816996685e69be41dcd651c70d4618c7 (patch)
tree7bdf4902c60370105d0aa2126d932561381b4000
parentfc848ec4362f1b166c2efe2415edbc8896c3d7b5 (diff)
Attempt to fix sorting issues. (Backport of the relevant parts from D6.)
-rw-r--r--location.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/location.module b/location.module
index 033480e..c3df556 100644
--- a/location.module
+++ b/location.module
@@ -204,11 +204,13 @@ function _location_expand_location($element) {
// @@@ Permission check hook?
if ($fsettings[$field]['collect'] != 0) {
$element[$field] = location_invoke_locationapi($defaults[$field], 'field_expand', $field, $fsettings[$field]['collect'], $defaults);
+ $element[$field]['#weight'] = (int)$fsettings[$field]['weight'];
}
// Only include 'Street Additional' if 'Street' is 'allowed' or 'required'
if ($field == 'street' && $fsettings[$field]['collect']) {
$element['additional'] = location_invoke_locationapi($defaults['additional'], 'field_expand', 'additional', 1, $defaults);
+ $element['additional']['#weight'] = (int)$fsettings[$field]['weight'];
}
}
}