You are here

function theme_hierarchical_select_select in Hierarchical Select 7.3

Same name and namespace in other branches
  1. 5.3 hierarchical_select.module \theme_hierarchical_select_select()
  2. 6.3 includes/theme.inc \theme_hierarchical_select_select()

Format a select in the .hierarchial-select div: prevent it from being wrapped in a div. This simplifies the CSS and JS code.

Parameters

array $variables: An associative array containing the properties of the element.

Return value

string A themed HTML string representing the form element.

2 theme calls to theme_hierarchical_select_select()
_hs_process_render_flat_select in ./hierarchical_select.module
Render a flat select version of a hierarchical_select form element. This is necessary for backwards compatibility (together with some Javascript code) in case of GET forms.
_hs_process_render_hs_selects in ./hierarchical_select.module
Render the selects in the hierarchical select.

File

includes/theme.inc, line 118
All theme functions for the Hierarchical Select module.

Code

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