function theme_table_cell($contents, $header = false) { if (is_array($contents)) { $value = $contents['data']; unset($contents['data']); $attributes = $contents; } else { $value = $contents; $attributes = false; } return "<span" . theme_attributes($attributes) . ">{$value}</span>"; }
function theme_table_cell($contents, $header = FALSE) { $celltype = $header ? 'th' : 'td'; if (is_array($contents)) { $value = $contents['data']; unset($contents['data']); $attributes = $contents; } else { $value = $contents; $attributes = false; } return "<{$celltype}" . theme_attributes($attributes) . ">{$value}</{$celltype}>"; }