function theme_user_list
7.x user.module | theme_user_list( |
6.x user.module | theme_user_list($users, $title = NULL) |
Make a list of users.
Parameters
$users: An array with user objects. Should contain at least the name and uid.
$title: (optional) Title to pass on to theme_item_list().
Related topics
1 theme call to theme_user_list()
- user_block in drupal-6.x/
modules/ user/ user.module - Implementation of hook_block().
File
- drupal-6.x/
modules/ user/ user.module, line 869 - Enables the user registration and login system.
Code
function theme_user_list($users, $title = NULL) {
if (!empty($users)) {
foreach ($users as $user) {
$items[] = theme('username', $user);
}
}
return theme('item_list', $items, $title);
}