function theme_file_formatter_table

7.x theme_file_formatter_table($variables)

Returns HTML for a file attachments table.


$variables: An associative array containing:

  • items: An array of file attachments.

Related topics

2 string references to the theme hook from theme_file_formatter_table()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

file_field_formatter_view in drupal/modules/file/
Implements hook_field_formatter_view().
file_theme in drupal/modules/file/file.module
Implements hook_theme().


drupal/modules/file/, line 1020
Field module functionality for the File module.


function theme_file_formatter_table($variables) {
  $header = array(t('Attachment'), t('Size'));
  $rows = array();
  foreach ($variables['items'] as $delta => $item) {
    $rows[] = array(
      theme('file_link', array('file' => (object) $item)),

  return empty($rows) ? '' : theme('table', array('header' => $header, 'rows' => $rows));