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/
Pass options for the server verification to the backend.
hosting_server_drush_context_import in server/
@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/
Build a table header compiled from available services.
hosting_server_handler_field_services::render in server/includes/views/handlers/
Build a list of services.

... See full list


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


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('', $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('', $module);
        $services[$service_type]['types'][$service] = 'hostingService_' . $service_type . '_' . $service;

  return $services;