Tableselect with columns of checkboxes I've a simple tableselect with 4 columns, in the 3 last columns a want to populate all the columns with checkboxes, anyone can help me to do that ?

here is my actual code :

function liste_sections($form, &amp;$form_state){
$form = array();

$header = array(
        'sections' =&gt; t('Sections'),
        'affichable'=&gt;t('Affichable'),
        'new'=&gt;t('New'),
        'online'=&gt;t('Online'),
);

$resultat = db_select('taxonomy_term_data','tax');
$resultat-&gt;fields('tax',array('tid','name'));
$res = $resultat-&gt;execute(); 

$rows = array();
    foreach($res as $sql){
        $rows [] = array(
            'sections' =&gt; $sql-&gt; name,
          // Time to put checkboxes for other columns
            );
    }

$form['liste_sec'] = array(
        '#type' =&gt; 'tableselect',
        '#header' =&gt; $header,
        '#options' =&gt; $rows,
        '#empty' =&gt; t('empty ! '),
);

$form['ok'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; t('submit'),
    );
return $form;
}


Thank you all
I got it, in my liste_sections($form, &amp;$form_states)

$checkbox_col1 = array(
    '#type' =&gt; 'checkbox',
    );

$checkbox_col2 = array(
    '#type' =&gt; 'checkbox',
    );

$checkbox_col3 = array(
    '#type' =&gt; 'checkbox',
    );


after that, add those variables to the rows :

$rows = array();
    foreach($res as $sql){
        $rows [] = array(
            'sections' =&gt; $sql-&gt; name,
            'affichable' =&gt; array('data'=&gt;$checkbox_col1),
            'News' =&gt; array('data'=&gt;$checkbox_col2),
            'online' =&gt; array('data'=&gt;$checkbox_col3),
            );
    }