function extended_file_field_generate_table in Extended File Field 7
Generate the final table output for a file listing table.
Parameters
array $header: An array defining the table header.
array $rows: An array of $rows information for this table.
string $table_id: The (CSS) id for this table.
Return value
array The render array for this table.
Related topics
1 call to extended_file_field_generate_table()
File
- ./
extended_file_field.module, line 1024 - Extends the core File field widget and provides a new formatter.
Code
function extended_file_field_generate_table($header, $rows, $table_id) {
$table = array(
'#theme' => 'table',
'#sticky' => FALSE,
'#header' => $header,
'#rows' => $rows,
'#attributes' => array(
'id' => $table_id,
),
);
return $table;
}