function hook_hosting_quota_resource_render in Hostmaster (Aegir) 6
Definition of hook_hosting_quota_resource_render
Parameters
$resource string: Machine name of the resource
$usage int: Usage as returned by hosting_quota_get_usage
Related topics
1 function implements hook_hosting_quota_resource_render()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- hosting_site_hosting_quota_resource_render in modules/
hosting/ site/ hosting_site.quota.inc - Implement hook_hosting_quota_resource_render
1 invocation of hook_hosting_quota_resource_render()
- hosting_quota_resource_render in modules/
hosting/ quota/ hosting_quota.module - Rendering function for quotas
File
- modules/
hosting/ quota/ hosting_quota.api.php, line 61 - Hooks provided by the hosting quota module.
Code
function hook_hosting_quota_resource_render($resource, $usage) {
switch ($resource) {
case 'foo':
$bar = 23;
return $usage * $bar . ' units';
}
}