You are here

function theme_checkbox_tree_label in Taxonomy Term Reference Tree Widget 8

Same name and namespace in other branches
  1. 7.2 term_reference_tree.widget.inc \theme_checkbox_tree_label()
  2. 7 term_reference_tree.widget.inc \theme_checkbox_tree_label()

This function prints a label that cannot be selected.

1 string reference to 'theme_checkbox_tree_label'
term_reference_tree_theme in ./term_reference_tree.module
Implements hook_theme().
1 theme call to theme_checkbox_tree_label()
CheckboxTreeLabel::getInfo in src/Element/CheckboxTreeLabel.php
Returns the element properties for this element.

File

./term_reference_tree.module, line 148

Code

function theme_checkbox_tree_label($variables) {
  $element = $variables['element'];
  $output = '<div class="parent-term">' . $element['#value'] . '</div>';
  return $output;
}