| Versionen | |
|---|---|
| drupal6 – drupal7 | theme_user_list($users, $title = NULL) |
Make a list of users.
$users An array with user objects. Should contain at least the name and uid.
$title (optional) Title to pass on to theme_item_list().
modules/
<?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);
}
?>
Kommentare
Kommentar hinzufügen