hosting.feature.task.inc

Expose the task feature to hostmaster.

Functions

File

task/hosting.feature.task.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Expose the task feature to hostmaster.
  5. */
  6. /**
  7. * Implements hook_hosting_feature().
  8. */
  9. function hosting_task_hosting_feature() {
  10. $features['task'] = array(
  11. 'title' => t('Tasks'),
  12. 'description' => t('API to provide support for tasks.'),
  13. 'status' => HOSTING_FEATURE_REQUIRED,
  14. 'module' => 'hosting_task',
  15. 'node' => 'task',
  16. 'group' => 'required',
  17. 'role_permissions' => array(
  18. 'aegir platform manager' => array(
  19. 'administer tasks',
  20. 'create lock task',
  21. 'create unlock task',
  22. 'create verify task',
  23. 'access task logs',
  24. 'cancel own tasks',
  25. 'view own tasks',
  26. 'retry failed tasks',
  27. 'view task',
  28. ),
  29. 'aegir client' => array(
  30. 'create backup task',
  31. 'create delete task',
  32. 'create disable task',
  33. 'create enable task',
  34. 'create restore task',
  35. 'create verify task',
  36. 'access task logs',
  37. 'view own tasks',
  38. 'view task',
  39. 'cancel own tasks',
  40. ),
  41. ),
  42. );
  43. return $features;
  44. }