You are here

function hosting_server_services in Hostmaster (Aegir) 6

Return an associative array of services enabled on this system.

8 calls to hosting_server_services()
hosting_hosting_server_context_options in modules/hosting/server/hosting_server.drush.inc
hosting_server_drush_context_import in modules/hosting/server/hosting_server.drush.inc
hosting_server_form in modules/hosting/server/hosting_server.module
Implementation of hook_form().
hosting_server_listing in modules/hosting/server/hosting_server.module
Output a table of servers with their enabled services.
hosting_server_services_from_post in modules/hosting/server/hosting_server.module
Translate a server form submission into populated server objects on the node.

... See full list

File

modules/hosting/server/hosting_server.module, line 102

Code

function hosting_server_services() {
  static $services;
  if (!isset($services)) {
    $services = module_invoke_all('hosting_service_type');
    foreach (module_implements('hosting_service') as $module) {
      foreach (module_invoke($module, 'hosting_service') as $service => $service_type) {
        module_load_include('service.inc', $module);
        $services[$service_type]['types'][$service] = 'hostingService_' . $service_type . '_' . $service;
      }
    }
  }
  return $services;
}