function hosting_platform_hosting_feature in Hosting 7.4
Same name and namespace in other branches
- 5 platform/hosting_platform.module \hosting_platform_hosting_feature()
- 6.2 platform/hosting.feature.platform.inc \hosting_platform_hosting_feature()
- 7.3 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;
}