hosting.feature.platform.inc

Expose the platform feature to hostmaster.

Functions

File

platform/hosting.feature.platform.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Expose the platform feature to hostmaster.
  5. */
  6. /**
  7. * Implements hook_hosting_feature().
  8. */
  9. function hosting_platform_hosting_feature() {
  10. $features['platform'] = array(
  11. 'title' => t('Platform administration'),
  12. 'description' => t('Create and manage platforms.'),
  13. 'status' => HOSTING_FEATURE_REQUIRED,
  14. 'module' => 'hosting_platform',
  15. 'node' => 'platform',
  16. 'group' => 'required',
  17. 'role_permissions' => array(
  18. 'aegir platform manager' => array(
  19. 'administer platforms',
  20. 'create platform',
  21. 'delete platform',
  22. 'edit platform',
  23. 'view locked platforms',
  24. 'view platform',
  25. 'create sites on locked platforms',
  26. ),
  27. 'aegir client' => array(
  28. 'view platform',
  29. ),
  30. ),
  31. );
  32. return $features;
  33. }