You are here

function theme_dir_listing_metadata_group in Filebrowser 7.2

Same name and namespace in other branches
  1. 8 filebrowser.theme.inc \theme_dir_listing_metadata_group()
  2. 6.2 filebrowser.theme.inc \theme_dir_listing_metadata_group()
  3. 7.4 filebrowser.theme.inc \theme_dir_listing_metadata_group()
  4. 7.3 filebrowser.theme.inc \theme_dir_listing_metadata_group()
1 theme call to theme_dir_listing_metadata_group()
filebrowser_form_metadata in ./filebrowser.pages.inc

File

./filebrowser.theme.inc, line 297
Several theme functions for filebrowser

Code

function theme_dir_listing_metadata_group($array_form) {
  $form = $array_form[''];

  //$thumbnail = drupal_render($form['thumbnail']);
  $output = "<table>";
  foreach (element_children($form) as $key) {
    if ($key != 'thumbnail') {

      //$output .= "<tr><td>$thumbnail</td><td>"
      $output .= "<tr><td>" . $form['thumbnail']['#value'] . "</td><td>" . drupal_render($form[$key]) . "</td></tr>";
      $thumbnail = '';
    }
  }
  $output .= "</table>";
  return $output;
}