Here is the issue. I currently have a table select with the following code:
$form['epgp_modifyform']['epgp_table'] = array(
'#type' => 'tableselect',
'#header' => $userInfoSelectKeys,
'#options' => $selectValues,
'#empty' => t('No users!'),
'#weight' => 0,
'#attributes' => array('class' => array('epgp-list')),
'#multiple' => TRUE,
);
However, the table shows as empty, even though the $selectValues has 3 entries. I did an export on the $form to show you how I'm constructing it. what is paining me is that I've tried five different ways of formatting this, and it is still showing up empty. Ugh.
What am I missing?
array (
'epgp_modifyform' =>
array (
'#type' => 'form',
'epgp_table' =>
array (
'#type' => 'tableselect',
'#header' =>
array (
'number' =>
array (
'data' => 'Place',
'field' => 'n.number',
),
'pr' =>
array (
'data' => 'PR',
'field' => 'n.pr',
),
'ep' =>
array (
'data' => 'EP',
'field' => 'n.ep',
),
'gp' =>
array (
'data' => 'GP',
'field' => 'n.gp',
),
'name' =>
array (
'data' => 'User',