theme_item_list($items = array(), $title = NULL)
drupal/includes/theme.inc, line 772
Return a themed list of items.
$items An array of items to be displayed in the list.
$title The title of the list.
A string containing the list output.
| Name | Description |
|---|---|
| Themeable functions | Functions that display HTML, and which can be customized by themes. |
function theme_item_list($items = array(), $title = NULL) {
$output = '<div class="item-list">';
if (isset($title)) {
$output .= '<h3>'. $title .'</h3>';
}
if (isset($items)) {
$output .= '<ul>';
foreach ($items as $item) {
$output .= '<li>'. $item .'</li>';
}
$output .= '</ul>';
}
$output .= '</div>';
return $output;
}