Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Drezdenozk CreditAttribution: Drezdenozk commentedSeems 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
Comment #2
Dave Cohen CreditAttribution: Dave Cohen commentedThat'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.