Vertical tables
Categories
Component ID
2713287
Component name
Vertical tables
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Allows using theme_table to create tables where the header is down the left hand
side of the table as opposed to along the top.
Example
$header = array('Apples', 'Peaches', 'Pears', 'Bananas');
$columns[] = array('Lorem', 'ipsum', 'dolor', 'sit');
$columns[] = array('amet', 'consectetur', 'adipiscing', 'elit');
$variables = array(
'vertical' => TRUE,
'header' => $header,
'columns' => $columns,
'empty' => 'No data found',
);
$table = theme('table', $variables);
