Index: includes/theme.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/theme.inc,v retrieving revision 1.284 diff -u -F^f -r1.284 theme.inc --- includes/theme.inc 7 Mar 2006 11:28:22 -0000 1.284 +++ includes/theme.inc 20 Mar 2006 12:07:19 -0000 @@ -872,6 +872,34 @@ function theme_item_list($items = array( } /** + * Return a themed list of items. + * + * @param $items + * An array of items to be displayed in the list. + * The argument is: array("term" => $term, "definition" => $definition) + * @param $title + * The title of the list. + * @return + * A string containing the list output. + */ +function theme_definition_list($items = array(), $title = NULL) { + $output = '
'; + if (isset($title)) { + $output .= '

'. $title .'

'; + } + + if (!empty($items)) { + $output .= "
"; + foreach ($items as $item) { + $output .= '
'. $item['term'] .'
'. $item['definition'] .'
'; + } + $output .= "
"; + } + $output .= '
'; + return $output; +} + +/** * Returns code that emits the 'more help'-link. */ function theme_more_help_link($url) {