You are here

function hosting_server_services in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 server/hosting_server.module \hosting_server_services()
  2. 7.3 server/hosting_server.module \hosting_server_services()

Return an associative array of services enabled on this system.

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

... See full list

File

server/hosting_server.module, line 106

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;
}