Closed (fixed)
Project:
Profile Category Weight
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 May 2009 at 10:52 UTC
Updated:
20 May 2009 at 20:50 UTC
Category weights are not correctly applied when displaying user-information [user/%uid]. This small piece of code, placed into profile_category_weight.module, may help:
function profile_category_weight_profile_alter(&$data)
{
$weights = _profile_category_weight_categories();
foreach ($data->content as $name=>&$category)
{
if (isset($weights[$name]))
{
$category['#weight']=$weights[$name];
}
}
}
Comments
Comment #1
hanoiiThanks, tried that and it worked with a few tweaks, also backported to D5.