function theme_hs_taxonomy_formatter_lineage in Hierarchical Select 7.3
Format a lineage for one of HS Taxonomy's custom Term reference formatters.
File
- modules/
hs_taxonomy.module, line 1084 - Implementation of the Hierarchical Select API for the Taxonomy module.
Code
function theme_hs_taxonomy_formatter_lineage($variables) {
$output = '';
$lineage = $variables['lineage'];
$separator = theme('hierarchical_select_item_separator');
// Render each item within a lineage.
$items = array();
foreach ($lineage as $level => $item) {
$line = '<span class="lineage-item lineage-item-level-' . $level . '">';
$line .= drupal_render($item);
$line .= '</span>';
$items[] = $line;
}
$output .= implode($separator, $items);
return $output;
}