Commit 3ccd4375 authored by Dries's avatar Dries
Browse files

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

parent fec2710a
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment