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

joachim’s picture

Ugh, 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.

joachim’s picture

Mystery. Filed here: http://drupal.org/node/685806

yeputons’s picture

Status: Postponed » Closed (won't fix)

As dereine said in the above post, this is not fixable in 6.x, but is already fixed in 7.x