You are here

hosting.feature.site.inc in Hosting 7.4

Same filename and directory in other branches
  1. 6.2 site/hosting.feature.site.inc
  2. 7.3 site/hosting.feature.site.inc

Expose the site feature to hostmaster.

File

site/hosting.feature.site.inc
View source
<?php

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

/**
 * Implements hook_hosting_feature().
 */
function hosting_site_hosting_feature() {
  $features['site'] = array(
    'title' => t('Site administration'),
    'description' => t('Create and manage sites.'),
    'status' => HOSTING_FEATURE_REQUIRED,
    'module' => 'hosting_site',
    'node' => 'site',
    'group' => 'required',
    'role_permissions' => array(
      'aegir platform manager' => array(
        'administer sites',
        'create site',
        'delete site',
        'edit site',
        'view site',
      ),
      'aegir account manager' => array(
        'view site',
      ),
      'aegir client' => array(
        'create site',
        'delete site',
        'view site',
        'edit site',
      ),
    ),
  );
  return $features;
}

Functions