Hello! It will be nice, if in next version you add a page with all users and their assigned terms. (it's like admin/people page, but with column like on user/%/edit/tac_lite.
Will be very good, if that column were editable...

But now, how i can return list of attached to each user's term's? Seems like it doesn't store in DB... I want to do page with theme_table with user names\uid

sry for bad english...

Comments

Drezdenozk’s picture

Seems like i need use
_tac_lite_user_tids($user, $scheme_id) ?

update

i got this!
$query = db_select('users', 'n')
->condition('uid', '0', '>')
->extend('PagerDefault') //Pager Extender
->limit(10) //10 results per page
->extend('TableSort') //Sorting Extender
->orderByHeader($header)//Field to sort on is picked from $header
->fields ('n', array (
'mail',
'name',
'uid',
'status',
));

$results = $query
->execute();
foreach ($results as $result) {
$user = user_load($result->uid);
$user->data['tac_lite']

$tr = "";
foreach($user->data['tac_lite'] as $value){
foreach($value as $value2){
$tr .= " ".$value2;
}
}
}
it's example, where we get all term ID assigned to user (in example to

Dave Cohen’s picture

That's a good tip. A pretty expensive page to load, with all those user_load calls.

I wonder, is there a way to add something to Drupal's built-in user list? I'm not sure its a good idea to add another place where users are listed.