tablesort_header

function tablesort_header

tablesort_header(&$cell_content, array &$cell_attributes, array $header, array $ts)

Formats a column header.

If the cell in question is the column header for the current sort criterion, it gets special formatting. All possible sort criteria become links.

Parameters

string $cell_content: The cell content to format. Passed by reference.

array $cell_attributes: The cell attributes. Passed by reference.

array $header: An array of column headers in the format described in '#type' => 'table'.

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

File

core/includes/