You are here

function hook_hosting_quota_resource in Hostmaster (Aegir) 6

Definition of hook_hosting_quota_resource

Related topics

1 function implements hook_hosting_quota_resource()

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 in modules/hosting/site/hosting_site.quota.inc
Implement hook_hosting_quota_resource
5 invocations of hook_hosting_quota_resource()
hosting_quota_admin_client_list in modules/hosting/quota/hosting_quota.admin.inc
Page callback for admin/hosting/quotas
hosting_quota_admin_defaults_form in modules/hosting/quota/hosting_quota.admin.inc
Callback for admin/hosting/quotas/defaults
hosting_quota_form_alter in modules/hosting/quota/hosting_quota.module
Insert edit controls for the hosting quotas into the client edit form
hosting_quota_get in modules/hosting/quota/hosting_quota.module
Get info about hosting quotas
hosting_quota_get_all_info in modules/hosting/quota/hosting_quota.module
Get the rendered usage and info for all resources

File

modules/hosting/quota/hosting_quota.api.php, line 16
Hooks provided by the hosting quota module.

Code

function hook_hosting_quota_resource() {
  $resources = array();
  $resources['foo'] = array(
    'title' => t('Foo'),
    'description' => t('Limit for foo. Enter in 23rds of foo units.'),
    'module' => 'hook',
  );
  return $resources;
}