Full ELMS Learning Network documentation
function theme_select
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).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.
503 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.
- action_nodequeue_add in sites/
all/ modules/ local_contrib/ nodequeue/ includes/ nodequeue.actions.inc - Old-style action to add a node to a queue.
- action_nodequeue_remove in sites/
all/ modules/ local_contrib/ nodequeue/ includes/ nodequeue.actions.inc - Old-style action to remove a node from a queue.
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>';
}