You are here

function services_get_servers in Services 6.3

Same name and namespace in other branches
  1. 7.3 services.module \services_get_servers()

Returns information about the installed server modules on the system.

Return value

array An associative array keyed after module name containing information about the installed server implementations.

4 calls to services_get_servers()
ServicesModuleTests::testServicesGetServers in tests/unit/TestServicesModule.test
Verify services_get_servers() returs the REST server.
services_ctools_export_ui_form in plugins/export_ui/services_ctools_export_ui.inc
Form to edit the settings of an endpoint.
services_edit_form_endpoint_server in plugins/export_ui/services_ctools_export_ui.class.php
services_edit_form_endpoint_server_submit in plugins/export_ui/services_ctools_export_ui.class.php

File

./services.module, line 133
Provides a generic but powerful API for web services.

Code

function services_get_servers() {
  static $servers;
  if (!$servers) {
    $servers = array();
    foreach (module_implements('server_info') as $module) {
      $servers[$module] = call_user_func($module . '_server_info');
    }
  }
  return $servers;
}