function hosting_site_backup_list in Hosting 5
Same name and namespace in other branches
- 6.2 site/hosting_site.backups.inc \hosting_site_backup_list()
- 7.4 site/hosting_site.backups.inc \hosting_site_backup_list()
- 7.3 site/hosting_site.backups.inc \hosting_site_backup_list()
Retrieve a list of backup generated for a site.
Parameters
site: The node if of the site backups are being retrieved for
Return value
An associative array of backups existing for the site, indexed by bid and sorted reverse chronologically.
1 call to hosting_site_backup_list()
File
- site/
hosting_site.module, line 556
Code
function hosting_site_backup_list($site) {
$result = db_query("SELECT bid, description, timestamp FROM {hosting_site_backups} WHERE site=%d ORDER BY timestamp DESC", $site);
while ($object = db_fetch_object($result)) {
#needs to be cleaned up. but i am NOT generating a theme func for this right now.
$backups[$object->bid] = '<strong>' . format_date($object->timestamp) . '</strong> - ' . $object->description;
}
return $backups;
}