hosting.feature.hosting.inc

Expose the hosting feature to hostmaster.

Functions

File

hosting.feature.hosting.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Expose the hosting feature to hostmaster.
  5. */
  6. /**
  7. * Implements hook_hosting_feature().
  8. */
  9. function hosting_hosting_feature() {
  10. $features['hosting'] = array(
  11. 'title' => t('Hosting system'),
  12. 'description' => t('API to provide support for servers, platforms and sites.'),
  13. 'status' => HOSTING_FEATURE_REQUIRED,
  14. 'module' => 'hosting',
  15. 'group' => 'required',
  16. // Normally Hosting features will assign their own permissions to various
  17. // roles. This module defines these roles, and thus assigns permissions
  18. // from Drupal core and contrib modules as well. Since it only provides
  19. // administrator-level permissions, and the aegir_administrator role is
  20. // automatically assigned all permissions defined in Hosting features, none
  21. // are assigned explicitely here.
  22. 'role_permissions' => array(
  23. 'aegir administrator' => array(
  24. 'access administration menu',
  25. 'access content',
  26. 'view revisions',
  27. 'access user profiles',
  28. ),
  29. 'aegir platform manager' => array(
  30. 'access content',
  31. // 'search content',
  32. // 'use advanced search',
  33. 'view revisions',
  34. ),
  35. 'aegir account manager' => array(
  36. 'access content',
  37. 'access user profiles',
  38. ),
  39. 'aegir client' => array(
  40. 'access content',
  41. 'view revisions',
  42. ),
  43. ),
  44. );
  45. return $features;
  46. }