Closed (won't fix)
Project:
User Terms
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2010 at 15:14 UTC
Updated:
20 Jul 2010 at 18:34 UTC
For reasons I don't understand, hook_user() $op 'load' is called multiple times, as this snippet of code shows.
function user_terms_load_profile(&$account) {
static $count;
$count++;
dsm($count);
// ....
I've no idea why this is, as we seem to be using hook_user correctly, so to speed things up I'm going to add a check of the $user property we set.
Leaving this as postponed in case there's some weirdness somewhere and a proper way to fix it.
Comments
Comment #1
joachim commentedUgh, scratch that. Every time we come to that hook, $account->user_terms is not set!
This actually happens only when you look at /user/UID.
Comment #2
joachim commentedMystery. Filed here: http://drupal.org/node/685806
Comment #3
yeputons commentedAs dereine said in the above post, this is not fixable in 6.x, but is already fixed in 7.x