function hosting_site_hosting_quota_get_usage in Hosting 6.2
Same name and namespace in other branches
- 7.4 site/hosting_site.quota.inc \hosting_site_hosting_quota_get_usage()
- 7.3 site/hosting_site.quota.inc \hosting_site_hosting_quota_get_usage()
Implement hook_hosting_quota_get_usage
1 call to hosting_site_hosting_quota_get_usage()
- hosting_site_quota_exceeded in site/
hosting_site.quota.inc - Check for quotas and return an appropriate error message to the site creation form
File
- site/
hosting_site.quota.inc, line 21
Code
function hosting_site_hosting_quota_get_usage($client, $resource, $start = NULL, $end = NULL) {
if (hosting_get_client($client) && $resource == 'sites') {
return db_result(db_query("SELECT count(*) FROM {hosting_site} WHERE client='%d' AND status <> '%d'", $client, HOSTING_SITE_DELETED));
}
}