function _theme_table_cell

cis7 _theme_table_cell($cell, $header = FALSE)
cle7 _theme_table_cell($cell, $header = FALSE)
elmsmedia7 _theme_table_cell($cell, $header = FALSE)
icor7 _theme_table_cell($cell, $header = FALSE)
meedjum_blog7 _theme_table_cell($cell, $header = FALSE)
mooc7 _theme_table_cell($cell, $header = FALSE)

Returns HTML output for a single table cell for theme_table().


$cell: Array of cell information, or string to display in cell.

bool $header: TRUE if this cell is a table header cell, FALSE if it is an ordinary table cell. If $cell is an array with element 'header' set to TRUE, that will override the $header parameter.

Return value

HTML for the cell.

5 calls to _theme_table_cell()
responsive_tables_theme_table in sites/all/modules/local_contrib/responsive_tables/responsive_tables.module
Overrides theme_table() with responsive support.
template_preprocess_forum_topic_list in modules/forum/forum.module
Preprocesses variables for forum-topic-list.tpl.php.
template_preprocess_views_data_export_msoffice_body in sites/all/modules/local_contrib/views_data_export/theme/
template_preprocess_views_data_export_msoffice_header in sites/all/modules/local_contrib/views_data_export/theme/
theme_table in includes/
Returns HTML for a table.


includes/, line 2303
The theme system, which controls the output of Drupal.


function _theme_table_cell($cell, $header = FALSE) {
  $attributes = '';

  if (is_array($cell)) {
    $data = isset($cell['data']) ? $cell['data'] : '';
    // Cell's data property can be a string or a renderable array.
    if (is_array($data)) {
      $data = drupal_render($data);
    $header |= isset($cell['header']);
    $attributes = drupal_attributes($cell);
  else {
    $data = $cell;

  if ($header) {
    $output = "<th$attributes>$data</th>";
  else {
    $output = "<td$attributes>$data</td>";

  return $output;