function _theme_table_cell in Drupal 5
Same name and namespace in other branches
- 4 includes/theme.inc \_theme_table_cell()
- 6 includes/theme.inc \_theme_table_cell()
- 7 includes/theme.inc \_theme_table_cell()
End of "defgroup themeable".
Related topics
1 call to _theme_table_cell()
- theme_table in includes/
theme.inc - Return a themed table.
File
- includes/
theme.inc, line 1100 - The theme system, which controls the output of Drupal.
Code
function _theme_table_cell($cell, $header = FALSE) {
$attributes = '';
if (is_array($cell)) {
$data = $cell['data'];
$header |= isset($cell['header']);
unset($cell['data']);
unset($cell['header']);
$attributes = drupal_attributes($cell);
}
else {
$data = $cell;
}
if ($header) {
$output = "<th{$attributes}>{$data}</th>";
}
else {
$output = "<td{$attributes}>{$data}</td>";
}
return $output;
}