From 6ffdf055d950f0c71a7a2b88cdc464d39fcbb701 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 3 Nov 2006 01:35:17 +0000 Subject: Add missing array keys to fields when building user profile view, to make hook_profile_alter() use more consistent. --- 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 c6da58721..629514536 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -607,7 +607,7 @@ function profile_view_profile($user) { 'value' => $value, 'class' => $field->name, ); - $fields[$field->category][] = $item; + $fields[$field->category][$field->name] = $item; } } return $fields; -- cgit v1.2.3