function hosting_site_hosting_quota_get_usage in Hosting 7.3
Same name and namespace in other branches
- 6.2 site/hosting_site.quota.inc \hosting_site_hosting_quota_get_usage()
- 7.4 site/hosting_site.quota.inc \hosting_site_hosting_quota_get_usage()
Implements hook_hosting_quota_get_usage().
File
- site/
hosting_site.quota.inc, line 25 - Quota-relaled hooks for the Hosting site module.
Code
function hosting_site_hosting_quota_get_usage($client, $resource, $start = NULL, $end = NULL) {
if (hosting_get_client($client) && $resource == 'sites') {
return db_query("SELECT count(*) FROM {hosting_site} WHERE client = :client AND status <> :status", array(
':client' => $client,
':status' => HOSTING_SITE_DELETED,
))
->fetchField();
}
}