From 168a3dcd8e1cb5769d6edc800471717a5457fa49 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Sat, 20 May 2006 01:24:30 +0000 Subject: #63485 by fgm, theme_item_list should receive an attributes parameter --- includes/theme.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 89f388dce..d25d323cb 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -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 = '
'; if (isset($title)) { $output .= '

'. $title .'

'; } if (!empty($items)) { - $output .= "<$type>"; + $output .= "<$type" . drupal_attributes($attributes) . '>'; foreach ($items as $item) { $output .= '
  • '. $item .'
  • '; } -- cgit v1.2.3