function hosting_site_hosting_quota_get_usage in Hostmaster (Aegir) 6
Implement hook_hosting_quota_get_usage
1 call to hosting_site_hosting_quota_get_usage()
- hosting_site_quota_exceeded in modules/
hosting/ site/ hosting_site.quota.inc - Check for quotas and return an appropriate error message to the site creation form
File
- modules/
hosting/ 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));
}
}