function theme_select

cis7 form.inc theme_select($variables)
cle7 form.inc theme_select($variables)
elmsmedia7 form.inc theme_select($variables)
icor7 form.inc theme_select($variables)
meedjum_blog7 form.inc theme_select($variables)
mooc7 form.inc theme_select($variables)

Returns HTML for a select form element.

It is possible to group options together; to do this, change the format of $options to an associative array in which the keys are group labels, and the values are associative arrays in the normal $options format.

Parameters

$variables: An associative array containing:

  • element: An associative array containing the properties of the element. Properties used: #title, #value, #options, #description, #extra, #multiple, #required, #name, #attributes, #size.

Related topics

2 theme calls to theme_select()
date_timezone_element_process in sites/all/modules/ulmus/date/date_api/date_api_elements.inc
Creates a timezone form element.
theme_date_select_element in sites/all/modules/ulmus/date/date_api/theme/theme.inc
Returns HTML for a date select input form element.
455 string references to the theme hook from theme_select()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

accessibility_tests_list in sites/all/modules/ulmus/accessibility/accessibility.admin.inc
Form for importing tests.
accessibility_test_add_form in sites/all/modules/ulmus/accessibility/accessibility.module
Form for saving accessibiliy test entities.
accessibility_test_edit_form in sites/all/modules/ulmus/accessibility/accessibility.module
Edit form for accessibility tests.
advagg_bundler_admin_settings_form in sites/all/modules/ulmus/advagg/advagg_bundler/advagg_bundler.admin.inc
Form builder; Configure advagg settings.
aggregator_block_configure in modules/aggregator/aggregator.module
Implements hook_block_configure().

... See full list

File

includes/form.inc, line 2694
Functions for form and batch generation and processing.

Code

function theme_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>';
}