You are here

function theme_cshs_select in Client-side Hierarchical Select 7

Theme function to render the select.

Modified version of theme_select to allow usage of cshs_form_select_options.

1 theme call to theme_cshs_select()
cshs_element_info in ./cshs.element.inc
Implements hook_element_info().

File

./cshs.module, line 227
A simple clientside hierarchical select widget for taxonomy terms.

Code

function theme_cshs_select($variables) {
  $element = $variables['element'];
  element_set_attributes($element, array(
    'id',
    'name',
    'size',
  ));
  _form_set_class($element, array(
    'form-select',
    'simpler-select-root',
  ));
  return '<select' . drupal_attributes($element['#attributes']) . '>' . cshs_form_select_options($element) . '</select>';
}