function hook_hosting_quota_resource_render

7.x-3.x hosting_quota.api.php hook_hosting_quota_resource_render($resource, $usage)

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.

hosting_site_hosting_quota_resource_render in site/hosting_site.quota.inc
Implements 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 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';
  }
}