summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-07-05 08:38:58 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-07-05 08:38:58 +0000
commitb9c40a52370c2e7d8b3db078f869e02881435da9 (patch)
treea4dc23ce5725a10eeed3717a1912532a15040e28
parent5642117bed5b6a17754d2c85e554ff83196e5f15 (diff)
downloadbrdo-b9c40a52370c2e7d8b3db078f869e02881435da9.tar.gz
brdo-b9c40a52370c2e7d8b3db078f869e02881435da9.tar.bz2
#114103 by adixon and webchick, slightly modified: custom profile fields show above built-in account fields
-rw-r--r--modules/profile/profile.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 66ab22967..a846d35b3 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -664,12 +664,12 @@ function _profile_form_explanation($field) {
function profile_form_profile($edit, $user, $category, $register = FALSE) {
$result = _profile_get_fields($category, $register);
- $w = 0;
+ $weight = 1;
$fields = array();
while ($field = db_fetch_object($result)) {
$category = $field->category;
if (!isset($fields[$category])) {
- $fields[$category] = array('#type' => 'fieldset', '#title' => $category, '#weight' => $w++);
+ $fields[$category] = array('#type' => 'fieldset', '#title' => $category, '#weight' => $weight++);
}
switch ($field->type) {
case 'textfield':