hosting.feature.task_gc.inc

The hosting feature definition for the task garbage collection.

Functions

Namesort descending Description
hosting_task_gc_hosting_feature Register a hosting feature with Aegir.

File

task_gc/hosting.feature.task_gc.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * The hosting feature definition for the task garbage collection.
  5. */
  6. /**
  7. * Register a hosting feature with Aegir.
  8. *
  9. * This will be used to generate the 'admin/hosting' page.
  10. *
  11. * @return
  12. * associative array indexed by feature key.
  13. */
  14. function hosting_task_gc_hosting_feature() {
  15. $features['task_gc'] = array(
  16. // title to display in form
  17. 'title' => t('Task garbage collection'),
  18. // description
  19. 'description' => t('Allows tasks to be removed.'),
  20. // initial status ( HOSTING_FEATURE_DISABLED, HOSTING_FEATURE_ENABLED, HOSTING_FEATURE_REQUIRED )
  21. 'status' => HOSTING_FEATURE_DISABLED,
  22. // module to enable/disable alongside feature
  23. 'module' => 'hosting_task_gc',
  24. // associate with a specific node type.
  25. // 'node' => 'nodetype',
  26. // which group to display in ( null , experimental )
  27. 'group' => 'experimental'
  28. );
  29. return $features;
  30. }