FAPI: tableselect example doesn't work

Created on 28 March 2016, about 9 years ago
Updated 26 March 2025, 14 days ago

API page: https://api.drupal.org/api/drupal/includes%21form.inc/function/theme_tab...

Enter a descriptive title (above) relating to function theme_tableselect, then describe the problem you have found:

Please take a look at official examples of usage theme_tableselect() and this line of function

    foreach (element_children($element) as $key) {

it will have 0 iterations, because element_children($element) will be always empty array.
So $rows will also be empty. Examples will always produce table with no rows

πŸ› Bug report
Status

Closed: won't fix

Component

API documentation files

Created by

πŸ‡ΊπŸ‡¦Ukraine mykola dolynskyi Poltava

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024