hosting.feature.example.inc

Expose the example feature to hostmaster.

Functions

File

example/hosting.feature.example.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Expose the example feature to hostmaster.
  5. */
  6. /**
  7. * Implements hook_hosting_feature().
  8. *
  9. * Register the example hosting feature with Aegir, initially this feature will
  10. * be disabled.
  11. */
  12. function hosting_example_hosting_feature() {
  13. $features['example'] = array(
  14. // title to display in form
  15. 'title' => t('Example feature'),
  16. // description
  17. 'description' => t('Example feature documenting how to create your own extensions.'),
  18. // initial status ( HOSTING_FEATURE_DISABLED, HOSTING_FEATURE_ENABLED, HOSTING_FEATURE_REQUIRED )
  19. 'status' => HOSTING_FEATURE_DISABLED,
  20. // module to enable/disable alongside feature
  21. 'module' => 'hosting_example',
  22. // Callback functions to execute on enabling or disabling this feature
  23. 'enable' => 'hosting_example_feature_enable_callback',
  24. 'disable' => 'hosting_example_feature_disable_callback',
  25. // associate with a specific node type.
  26. // 'node' => 'nodetype',
  27. // which group to display in ( null , experimental , required, advanced )
  28. 'group' => 'experimental'
  29. );
  30. return $features;
  31. }