You are here

function theme_filebrowser_page in Filebrowser 6

Same name and namespace in other branches
  1. 5 filebrowser.module \theme_filebrowser_page()

Theme a filebrowser page, if files are available or not. Here you have some possibility to reformat the data or the table layout.

1 theme call to theme_filebrowser_page()
filebrowser_page in ./filebrowser.module

File

./filebrowser.module, line 341

Code

function theme_filebrowser_page(&$files, $header = array(), $total_size = 0) {
  $output = '';
  if ($files) {

    // CSS can hook on this ID to style table elements differently
    $output .= theme('table', $header, $files, array(
      'id' => 'filebrowser-table',
    ));
    $output .= '<p>' . t('Contains @fc files totaling @ds in size', array(
      '@fc' => count($files),
      '@ds' => format_size($total_size),
    )) . '</p>';
  }
  else {
    $output .= '<p>' . t('This directory is empty.') . '</p>';
  }
  return $output;
}