You are here

function hosting_platform_hosting_feature in Hosting 7.3

Same name and namespace in other branches
  1. 5 platform/hosting_platform.module \hosting_platform_hosting_feature()
  2. 6.2 platform/hosting.feature.platform.inc \hosting_platform_hosting_feature()
  3. 7.4 platform/hosting.feature.platform.inc \hosting_platform_hosting_feature()

Implements hook_hosting_feature().

File

platform/hosting.feature.platform.inc, line 10
Expose the platform feature to hostmaster.

Code

function hosting_platform_hosting_feature() {
  $features['platform'] = array(
    'title' => t('Platform administration'),
    'description' => t('Create and manage platforms.'),
    'status' => HOSTING_FEATURE_REQUIRED,
    'module' => 'hosting_platform',
    'node' => 'platform',
    'group' => 'required',
    'role_permissions' => array(
      'aegir platform manager' => array(
        'administer platforms',
        'create platform',
        'delete platform',
        'edit platform',
        'view locked platforms',
        'view platform',
        'create sites on locked platforms',
      ),
      'aegir client' => array(
        'view platform',
      ),
    ),
  );
  return $features;
}