function _taxonomy_list_pad_row in Taxonomy List 5
Same name and namespace in other branches
- 6 taxonomy_list.module \_taxonomy_list_pad_row()
Pad the remaining cells in the table
1 call to _taxonomy_list_pad_row()
- _taxonomy_list_get_table in ./
taxonomy_list.module - Generate cascaded tables with terms and sub terms inside
File
- ./
taxonomy_list.module, line 173 - List the category specified in the URL
Code
function _taxonomy_list_pad_row(&$cells, &$rows, $cells_per_row) {
$cellscount = count($cells);
if ($cellscount > 0) {
// padding
for ($j = $cellscount; $j < $cells_per_row; $j++) {
$cells[] = ' ';
}
$rows[] = array(
'data' => $cells,
);
$cells = array();
}
}