You are here

function hosting_client_hosting_feature in Hosting 7.3

Same name and namespace in other branches
  1. 5 client/hosting_client.module \hosting_client_hosting_feature()
  2. 6.2 client/hosting.feature.client.inc \hosting_client_hosting_feature()
  3. 7.4 client/hosting.feature.client.inc \hosting_client_hosting_feature()

Implements hook_hosting_feature().

File

client/hosting.feature.client.inc, line 15
Expose the client feature to hostmaster.

Code

function hosting_client_hosting_feature() {
  $features['client'] = array(
    'title' => t('Clients'),
    'description' => t('Track and manage ownership of hosted sites, and access to platforms.'),
    'status' => HOSTING_FEATURE_REQUIRED,
    'module' => 'hosting_client',
    'node' => 'client',
    'group' => 'required',
    'role_permissions' => array(
      'aegir platform manager' => array(
        'administer clients',
      ),
      'aegir account manager' => array(
        'administer clients',
        'create client',
        'edit client users',
        'view client',
        'edit client uname',
      ),
      'aegir client' => array(
        'edit own client',
        'view client',
      ),
    ),
  );
  return $features;
}