Skip to content
Snippets Groups Projects
Commit 3ccd4375 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #517318 by dmitrig01: tableselect needs to be able to give options weights.

parent fec2710a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -2225,6 +2225,8 @@ function form_process_tableselect($element) {
$element['#default_value'] = array();
}
// Sort the options by their #weight if they have a #weight.
uasort($element['#options'], 'element_sort');
// Create a checkbox or radio for each item in #options in such a way that
// the value of the tableselect element behaves as if it had been of type
// checkboxes or radios.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment