function tablesort_cell

cis7 tablesort_cell($cell, $header, $ts, $i)
cle7 tablesort_cell($cell, $header, $ts, $i)
elmsmedia7 tablesort_cell($cell, $header, $ts, $i)
icor7 tablesort_cell($cell, $header, $ts, $i)
meedjum_blog7 tablesort_cell($cell, $header, $ts, $i)
mooc7 tablesort_cell($cell, $header, $ts, $i)

Formats a table cell.

Adds a class attribute to all cells in the currently active column.


$cell: The cell to format.

$header: An array of column headers in the format described in theme_table().

$ts: The current table sort context as returned from tablesort_init().

$i: The index of the cell's table column.

Return value

A properly formatted cell, ready for _theme_table_cell().

3 calls to tablesort_cell()
responsive_tables_theme_table in sites/all/modules/local_contrib/responsive_tables/responsive_tables.module
Overrides theme_table() with responsive support.
template_preprocess_views_data_export_msoffice_body in sites/all/modules/local_contrib/views_data_export/theme/
theme_table in includes/
Returns HTML for a table.


includes/, line 171
Functions to aid in the creation of sortable tables.


function tablesort_cell($cell, $header, $ts, $i) {
  if (isset($header[$i]['data']) && $header[$i]['data'] == $ts['name'] && !empty($header[$i]['field'])) {
    if (is_array($cell)) {
      $cell['class'][] = 'active';
    else {
      $cell = array(
        'data' => $cell,
        'class' => array('active'),
  return $cell;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.