You are here

hosting.feature.client.inc in Hosting 7.4

Expose the client feature to hostmaster.

File

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

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

/**
 * @file hosting.feature.client.inc
 * Register this module as an Aegir feature.
 */

/**
 * Implements hook_hosting_feature().
 */
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;
}

Functions