You are here

function theme_cdn_unscheduled_synced_files_list in CDN 5

Render the list of files that are queued for deletion.

Parameters

$files_unscheduled_synced: Array of local files.

$files_synced: Array of files that are already synchronized to the CDN.

Return value

The rendered HTML.

1 theme call to theme_cdn_unscheduled_synced_files_list()
cdn_admin_settings_form in ./cdn.module
Form definition: CDN admin settings form.

File

./cdn.module, line 439

Code

function theme_cdn_unscheduled_synced_files_list($files_unscheduled_synced, $files_synced) {
  $output = '';
  if (!count($files_unscheduled_synced)) {
    $output .= '<p>' . t('No files are queued for deletion.') . '</p>';
  }
  else {
    $header = array(
      array(
        'data' => t('Local file (links to the remote file)'),
      ),
    );
    $rows = array();
    foreach ($files_unscheduled_synced as $file) {
      $rows[] = array(
        'data' => array(
          l($file, $files_synced[$file]),
        ),
      );
    }
    $output .= theme('table', $header, $rows);
  }
  return $output;
}