You are here

function theme_fivestar_select in Fivestar 7.2

Same name and namespace in other branches
  1. 8 includes/fivestar.theme.inc \theme_fivestar_select()
  2. 5 fivestar.module \theme_fivestar_select()
  3. 6.2 fivestar.module \theme_fivestar_select()
  4. 6 fivestar.module \theme_fivestar_select()

Theme the straight HTML version of the fivestar select list. This is used to remove the wrapping 'form-item' div from the select list.

1 theme call to theme_fivestar_select()
fivestar_expand in ./fivestar.module
Process callback for fivestar_element -- see fivestar_element()

File

includes/fivestar.theme.inc, line 174
Provides the theming functions for fivestar.

Code

function theme_fivestar_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']) . '>' . form_select_options($element) . '</select>';
}