summaryrefslogtreecommitdiff
path: root/modules/profile
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-24 13:27:12 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-24 13:27:12 +0000
commita0c920badf0cbfec5bfa3ae9af1157f03bb06de9 (patch)
treec16c03cc55b4ba63424617f8f104cd42789997a9 /modules/profile
parent5e48ed60e77152d111135cc2b32883e3ff5910cf (diff)
downloadbrdo-a0c920badf0cbfec5bfa3ae9af1157f03bb06de9.tar.gz
brdo-a0c920badf0cbfec5bfa3ae9af1157f03bb06de9.tar.bz2
#140377 by tostinni: provide a default weight to new profile fields, so they will not be saved with -5
Diffstat (limited to 'modules/profile')
-rw-r--r--modules/profile/profile.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index c7d43b74a..27097b0f4 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -251,7 +251,7 @@ function profile_field_form(&$form_state, $arg = NULL) {
'category' => '',
'title' => '',
'explanation' => '',
- 'weight' => '',
+ 'weight' => 0,
'page' => '',
'autocomplete' => '',
'required' => '',