function theme_upload_form_current in Drupal 4
Same name and namespace in other branches
- 5 modules/upload/upload.module \theme_upload_form_current()
- 6 modules/upload/upload.module \theme_upload_form_current()
Theme the attachments list.
File
- modules/
upload.module, line 712 - File-handling and attaching files to nodes.
Code
function theme_upload_form_current(&$form) {
$header = array(
t('Delete'),
t('List'),
t('Description'),
t('Size'),
);
foreach (element_children($form) as $key) {
$row = array();
$row[] = form_render($form[$key]['remove']);
$row[] = form_render($form[$key]['list']);
$row[] = form_render($form[$key]['description']);
$row[] = form_render($form[$key]['size']);
$rows[] = $row;
}
$output = theme('table', $header, $rows);
$output .= form_render($form);
return $output;
}