function hook_hosting_quota_resource_render in Hosting 7.4
Same name and namespace in other branches
- 6.2 quota/hosting_quota.api.php \hook_hosting_quota_resource_render()
- 7.3 quota/hosting_quota.api.php \hook_hosting_quota_resource_render()
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
Return value
string
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.
1 invocation of hook_hosting_quota_resource_render()
- hosting_quota_resource_render in quota/
hosting_quota.module - Rendering function for quotas
File
- quota/
hosting_quota.api.php, line 63 - 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';
}
}