You are here

function theme_video_upload_file_info_form in Video 5

Same name and namespace in other branches
  1. 6 types/video_upload/video_upload.module \theme_video_upload_file_info_form()
  2. 6.2 types/video_upload/video_upload.module \theme_video_upload_file_info_form()

Display informations about already uploaded file

1 theme call to theme_video_upload_file_info_form()
_video_upload_form in types/video_upload/video_upload.module
Create video upload specific form fields

File

types/video_upload/video_upload.module, line 559
Enable Uploaded videos support for video module.

Code

function theme_video_upload_file_info_form($file, $node) {

  // create array containing uploaded file informations
  $items = array(
    '<b>' . t('file name') . ':</b> ' . _video_get_original_filename(basename($file->filename)),
    // do not display parent folders
    '<b>' . t('file size') . ':</b> ' . format_size($file->filesize),
  );

  // create information list
  $output .= theme_item_list($items, t('uploaded video information:'));
  return $output;
}