Commit 168a3dcd authored by drumm's avatar drumm
Browse files

#63485 by fgm, theme_item_list should receive an attributes parameter

parent 1b291a29
......@@ -842,19 +842,21 @@ function theme_stylesheet_import($path, $media = 'all') {
* An array of items to be displayed in the list.
* @param $title
* The title of the list.
* @param $attributes
* The attributes applied to the list element.
* @param $type
* The type of list to return (e.g. "ul", "ol")
* @return
* A string containing the list output.
*/
function theme_item_list($items = array(), $title = NULL, $type = 'ul') {
function theme_item_list($items = array(), $title = NULL, $type = 'ul', $attributes = NULL) {
$output = '<div class="item-list">';
if (isset($title)) {
$output .= '<h3>'. $title .'</h3>';
}
if (!empty($items)) {
$output .= "<$type>";
$output .= "<$type" . drupal_attributes($attributes) . '>';
foreach ($items as $item) {
$output .= '<li>'. $item .'</li>';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment