function _theme_table_cell

Same name and namespace in other branches
  1. 7.x drupal-7.x/includes/theme.inc \_theme_table_cell()
2 calls to _theme_table_cell()
template_preprocess_forum_topic_list in drupal-6.x/modules/forum/forum.module
Preprocess variables to format the topic listing.
theme_table in drupal-6.x/includes/theme.inc
Return a themed table.

Archivo

drupal-6.x/includes/theme.inc, line 1755
The theme system, which controls the output of Drupal.

Código

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

  if (is_array($cell)) {
    $data = isset($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;
}