theme_user_list

Versions
4.6
theme_user_list($items, $title = NULL)
4.7 – 6
theme_user_list($users, $title = NULL)
7
theme_user_list($variables)

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

Code

modules/user/user.module, line 837

<?php
function theme_user_list($users, $title = NULL) {
  if (!empty($users)) {
    foreach ($users as $user) {
      $items[] = theme('username', $user);
    }
  }
  return theme('item_list', $items, $title);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.