You are here

function tft_content_table in Taxonomy File Tree 7.2

Same name and namespace in other branches
  1. 7 tft.module \tft_content_table()

Get the folder content in HTML table format.

Parameters

int $tid:

Return value

string

Related topics

2 calls to tft_content_table()
tft in includes/tft.pages.inc
Page callback: file content list.
tft_ajax_get_folder in includes/tft.ajax.inc
Page callback: get folder content via AJAX.

File

./tft.module, line 351
Hook implementations and module logic for TFT.

Code

function tft_content_table($tid) {
  $headers = array(
    array(
      'data' => '<span>' . t("Name") . '</span>',
      'id' => 'table-th-name',
    ),
    array(
      'data' => '<span>' . t("Loaded by") . '</span>',
      'id' => 'table-th-loaded-by',
    ),
    array(
      'data' => '<span>' . t("Last modified") . '</span>',
      'id' => 'table-th-date',
    ),
    array(
      'data' => '<span>' . t("Type") . '</span>',
      'id' => 'table-th-type',
    ),
    array(
      'data' => '<span>' . t("Operations") . '</span>',
      'id' => 'table-th-ops',
    ),
  );
  $rows = tft_get_content($tid);
  return theme('table', array(
    'header' => $headers,
    'rows' => $rows,
  ));
}