diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-05-20 01:24:30 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-05-20 01:24:30 +0000 |
commit | 168a3dcd8e1cb5769d6edc800471717a5457fa49 (patch) | |
tree | 41e4775144ec9464586c0d9885c7f4101f3f4dbe | |
parent | 1b291a2917a1c18194c54fce8bf0fd895db98019 (diff) | |
download | brdo-168a3dcd8e1cb5769d6edc800471717a5457fa49.tar.gz brdo-168a3dcd8e1cb5769d6edc800471717a5457fa49.tar.bz2 |
#63485 by fgm, theme_item_list should receive an attributes parameter
-rw-r--r-- | includes/theme.inc | 6 |
1 files changed, 4 insertions, 2 deletions
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 = '<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>'; } |