Adding checkbox in admin table display
Although there's actually no question, I've noted the last part of your code should look like:

&lt;?php

$form['table'] = array(
  '#type' =&gt; 'tableselect',
  '#header' =&gt; $header,
  '#options' =&gt; $rows,
);

return $form;