function theme_term_level_group in Term Level Field 7
Themes the term_level_group formatter (per level).
1 theme call to theme_term_level_group()
- term_level_field_formatter_view in ./
term_level.module - Implements hook_field_formatter_view().
File
- ./
term_level.module, line 517 - Field type for referencing terms with a level to an entity.
Code
function theme_term_level_group(&$variables) {
if (isset($variables['levels'][$variables['level']]) && !empty($variables['term_names'])) {
$markup = '<div class="term-level-field-label term-level-field-label-level-' . $variables['level'] . '">' . check_plain($variables['levels'][$variables['level']]) . ': </div>';
$markup .= '<div class="term-level-field-items term-level-field-items-level-' . $variables['level'] . '">' . implode(', ', $variables['term_names']) . '</div>';
return $markup;
}
}