function hosting_server_services

7.x-3.x hosting_server.module hosting_server_services()

Return an associative array of services enabled on this system.

9 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
@todo Please document this function.
hosting_server_form in server/hosting_server.module
Implements hook_form().
hosting_server_handler_field_services::label in server/includes/views/handlers/hosting_server_handler_field_services.inc
Build a table header compiled from available services.
hosting_server_handler_field_services::render in server/includes/views/handlers/hosting_server_handler_field_services.inc
Build a list of services.

... See full list

File

server/hosting_server.module, line 185
Hook implementations for the Hosting server module.

Code

function hosting_server_services() {
  static $services;

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

  return $services;
}