You are here

hosting.feature.example.inc in Hosting 7.4

Same filename and directory in other branches
  1. 7.3 example/example_service/hosting.feature.example.inc

Expose the example feature to hostmaster.

File

example/example_service/hosting.feature.example.inc
View source
<?php

/**
 * @file
 * Expose the example feature to hostmaster.
 */

/**
 * Implements hook_hosting_feature().
 *
 * Register the example hosting feature with Aegir, initially this feature will
 * be disabled.
 */
function hosting_example_hosting_feature() {
  $features['example'] = array(
    // title to display in form
    'title' => t('Example feature'),
    // description
    'description' => t('Example feature documenting how to create your own extensions.'),
    // initial status ( HOSTING_FEATURE_DISABLED, HOSTING_FEATURE_ENABLED, HOSTING_FEATURE_REQUIRED )
    'status' => HOSTING_FEATURE_DISABLED,
    // module to enable/disable alongside feature
    'module' => 'hosting_example',
    // Callback functions to execute on enabling or disabling this feature
    'enable' => 'hosting_example_feature_enable_callback',
    'disable' => 'hosting_example_feature_disable_callback',
    // associate with a specific node type.
    //  'node' => 'nodetype',
    // which group to display in ( null , experimental , required, advanced )
    'group' => 'experimental',
  );
  return $features;
}

Functions