Adding custom variable to $user object I am using the following to add a custom field to a user with a custom variable.

global $user;
  
$account = user_load($user-&gt;uid); 
 
$language = ($user-&gt;language) ? $user-&gt;language : 'und';
 
$edit = array(
  'field_favourite_football_team' =&gt; array(
    $language =&gt; array(
      0 =&gt; array(
        'value' =&gt; 'Manchester City',
      ),
    ),
  ),
);
   
user_save($account, $edit);


Problem: I can see the outputted value on module A but on module B, when I dump or print out that global $user, I can't see that field. Is there anyway to save that on a for global use?
To add a field to the user entity, you need to visit the menu entry Administration > Configuration > People > Account Settings > Manage Fields. You can then define the field properties (including specifying whether it appears on the registration form or not) and customize how it is displayed on user pages.