tableselect showing empty message instead of options I'm trying to populate a tableselect on a form of a custom module. The tableselect is actually visible, but it's displaying the #empty message. I've simplified it to this code:

$form['my_module_overview'] = array(
    '#type' =&gt; 'tableselect',
    '#header' =&gt; array('parent' =&gt; t('Parent'), 'child' =&gt; t('Child')),
    '#options' =&gt; array(
        1 =&gt; array('parent' =&gt; 'test1', 'child' =&gt; 'test2'), 
        2 =&gt; array('parent' =&gt; 'test3', 'child' =&gt; 'test4')),
    '#empty' =&gt; t('There are no relationships defined yet.'),
    '#multiple' =&gt; TRUE,
);


So I'm seeing the table with the correct headers, but with the message "There are no ...".

I think I'm donig it correct, as the options array contains key-value-pairs with the values being arrays again. And those arrays have the header keys as keys ('parent' and 'child').

So how can I get the data to become visible in my tableselect?
Apparently, something is/was cached because clearing the cache solved it. So there weren't any problems with the code.