You are here

function hook_hosting_quota_resource_render in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 quota/hosting_quota.api.php \hook_hosting_quota_resource_render()
  2. 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

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 site/hosting_site.quota.inc
Implement hook_hosting_quota_resource_render
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 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';
  }
}