You are here

function hosting_site_get_backups in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 site/hosting_site.backups.inc \hosting_site_get_backups()

Return an array with site backup IDs as keys, and file paths as values.

2 calls to hosting_site_get_backups()
hosting_site_delete_site_task_submit in site/hosting_site.backups.inc
Submit handler for site delete form for deleting backups.
hosting_site_form_hosting_task_confirm_form_alter in site/hosting_site.backups.inc
Implements hook_form_FORM_ID_alter().

File

site/hosting_site.backups.inc, line 62
Site backup functions.

Code

function hosting_site_get_backups($nid) {
  return db_query("SELECT bid, filename FROM {hosting_site_backups} WHERE site = :nid", array(
    ':nid' => $nid,
  ))
    ->fetchAllKeyed();
}