You are here

function theme_filebrowser_page in Filebrowser 5

Same name and namespace in other branches
  1. 6 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
Prints a folder layout

File

./filebrowser.module, line 154

Code

function theme_filebrowser_page(&$files, $header = NULL, $pre = NULL) {
  if ($files) {

    // CSS can hook on this ID to style table elements differently
    return '<div id="filebrowser-page">' . $pre . theme("table", $header, $files) . '</div>';
  }
  else {
    return '';
  }
}