You are here

hosting.feature.quota.inc in Hosting 7.3

Expose the quota feature to hostmaster.

File

quota/hosting.feature.quota.inc
View source
<?php

/**
 * @file
 * Expose the quota feature to hostmaster.
 */

/**
 * Implements hook_hosting_feature().
 */
function hosting_quota_hosting_feature() {
  $features['quota'] = array(
    'title' => t('Quotas'),
    'description' => t('Provides the ability to define and allocate quotas for various resources to clients.'),
    'status' => HOSTING_FEATURE_DISABLED,
    'module' => 'hosting_quota',
    'group' => 'experimental',
    'role_permissions' => array(
      'aegir administrator' => array(
        'bypass all quotas',
      ),
      'aegir account manager' => array(
        'edit all quotas',
        'view all quotas',
        'view own quota',
      ),
      'aegir client' => array(
        'view own quota',
      ),
    ),
  );
  return $features;
}

Functions