--- faceted_search_ui.module Sat Jul 4 10:13:14 2009 +++ faceted_search_ui.module Sat Jul 4 10:25:46 2009 @@ -1091,7 +1091,7 @@ function faceted_search_ui_build_categor $facets[$index]->set_active_path($active_path); $path = faceted_search_ui_build_path($search, $ui_state, '', $facets); } - $items[] = theme('faceted_search_ui_category', $category, $path); + $items[] = theme('faceted_search_ui_category', $category, $path, 'item-' . (count($items) + 1)); } $facets[$index] = $facet; // Restore the altered facet at $index. @@ -1370,7 +1370,7 @@ function theme_faceted_search_ui_facet_l * When empty, the category's label and node count is displayed, otherwise the * category's label is displayed as a search for this category. */ -function theme_faceted_search_ui_category($category, $path) { +function theme_faceted_search_ui_category($category, $path, $attribute = NULL) { // Note: get_label() is responsible for filtering its returned string. if ($path) { $label = l($category->get_label(TRUE), $path, array('html' => TRUE)); @@ -1380,7 +1380,10 @@ function theme_faceted_search_ui_categor } // Note: Tooltips rely on class 'faceted-search-category'. - return ''. $label .' ('. $category->get_count() .')'; + if (!empty($attribute)) + return array('data' => ''. $label .' ('. $category->get_count() .')', 'class' => $attribute); + else + return ''. $label .' ('. $category->get_count() .')'; } function theme_faceted_search_ui_more($path) {