function theme_cdn_scheduled_unsynced_files_list in CDN 5
Render the list of scheduled but not yet synchronized files.
Parameters
$files_scheduled_unsynced: Array of local files.
Return value
The rendered HTML.
1 theme call to theme_cdn_scheduled_unsynced_files_list()
- cdn_admin_settings_form in ./
cdn.module - Form definition: CDN admin settings form.
File
- ./
cdn.module, line 408
Code
function theme_cdn_scheduled_unsynced_files_list($files_scheduled_unsynced) {
$output = '';
if (!count($files_scheduled_unsynced)) {
$output .= '<p>' . t('All files are synchronized!') . '</p>';
}
else {
$header = array(
array(
'data' => t('Local file'),
),
array(
'data' => t('Size'),
),
);
$rows = array();
foreach ($files_scheduled_unsynced as $file) {
$rows[] = array(
'data' => array(
$file,
number_format(filesize($file) / 1024, 2) . ' KB',
),
);
}
$output .= theme('table', $header, $rows);
}
return $output;
}