hosting.feature.site.inc

Expose the site feature to hostmaster.

Functions

File

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