| 5 theme.inc | _theme_table_cell($cell, $header = FALSE) |
| 6 theme.inc | _theme_table_cell($cell, $header = FALSE) |
| 7 theme.inc | _theme_table_cell($cell, $header = FALSE) |
| 8 theme.inc | _theme_table_cell($cell, $header = FALSE) |
1 call to _theme_table_cell()
File
- includes/
theme.inc, line 1010 - The theme system, which controls the output of Drupal.
Code
function _theme_table_cell($cell, $header = 0) {
$attributes = '';
if (is_array($cell)) {
$data = $cell['data'];
foreach ($cell as $key => $value) {
if ($key != 'data') {
$attributes .= " $key=\"$value\"";
}
}
}
else {
$data = $cell;
}
if ($header) {
$output = "<th$attributes>$data</th>";
}
else {
$output = "<td$attributes>$data</td>";
}
return $output;
}
Login or register to post comments