hosting.feature.client.inc

Expose the client feature to hostmaster.

Functions

File

client/hosting.feature.client.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Expose the client feature to hostmaster.
  5. */
  6. /**
  7. * @file hosting.feature.client.inc
  8. * Register this module as an Aegir feature.
  9. */
  10. /**
  11. * Implements hook_hosting_feature().
  12. */
  13. function hosting_client_hosting_feature() {
  14. $features['client'] = array(
  15. 'title' => t('Clients'),
  16. 'description' => t('Track and manage ownership of hosted sites, and access to platforms.'),
  17. 'status' => HOSTING_FEATURE_REQUIRED,
  18. 'module' => 'hosting_client',
  19. 'node' => 'client',
  20. 'group' => 'required',
  21. 'role_permissions' => array(
  22. 'aegir platform manager' => array(
  23. 'administer clients',
  24. ),
  25. 'aegir account manager' => array(
  26. 'administer clients',
  27. 'create client',
  28. 'edit client users',
  29. 'view client',
  30. 'edit client uname',
  31. ),
  32. 'aegir client' => array(
  33. 'edit own client',
  34. 'view client',
  35. ),
  36. ),
  37. );
  38. return $features;
  39. }