From a0c920badf0cbfec5bfa3ae9af1157f03bb06de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 24 Oct 2007 13:27:12 +0000 Subject: #140377 by tostinni: provide a default weight to new profile fields, so they will not be saved with -5 --- modules/profile/profile.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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' => '', -- cgit v1.2.3