function _backup_migrate_ui_destination_display_files in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.3 includes/destinations.inc \_backup_migrate_ui_destination_display_files()
- 7.3 includes/destinations.inc \_backup_migrate_ui_destination_display_files()
List the backup files in the given destination.
1 call to _backup_migrate_ui_destination_display_files()
- backup_migrate_ui_destination_display_files in includes/
destinations.inc - List the backup files in the given destination.
File
- includes/
destinations.inc, line 264
Code
function _backup_migrate_ui_destination_display_files($destination = NULL, $limit = NULL, $show_pager = FALSE) {
if ($destination) {
// Refresh the file listing cache if requested.
if (isset($_GET['refresh'])) {
$destination
->file_cache_clear();
drupal_goto($_GET['q']);
}
$files = $destination
->list_files();
$fetch = $out = '';
// Get the fetch link.
if ($destination->cache_files && $destination->fetch_time) {
$fetch = '<div class="description">' . t('This listing was fetched !time ago. !refresh', array(
'!time' => format_interval(time() - $destination->fetch_time, 1),
'!refresh' => l(t('fetch now'), $_GET['q'], array(
'query' => array(
'refresh' => 'true',
),
)),
)) . '</div>';
}
$out .= $fetch;
$out .= _backup_migrate_ui_destination_display_file_list($files, $limit, $show_pager);
$out .= $fetch;
return $out;
}
}