theme_user_list

Definition

theme_user_list($users, $title = NULL)
drupal/modules/user/user.module, line 681

Description

Make a list of users.

Parameters

$items an array with user objects. Should contain at least the name and uid

Related topics

Namesort iconDescription
Themeable functionsFunctions that display HTML, and which can be customized by themes.

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);
}