You are here

function hook_server_info in Services 7.3

Same name and namespace in other branches
  1. 6.3 services.servers.api.php \hook_server_info()

Identifies a server implementation to Services.

Return value

An associative array with the following keys.

  • name: The display name of this server.

- settings: an assoc array containing settings information per endpoint that this server is enabled.

4 functions implement hook_server_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

rest_server_server_info in servers/rest_server/rest_server.module
Implements hook_server_info().
services_get_server_info in includes/services.runtime.inc
Gets a server info value.
services_set_server_info in includes/services.runtime.inc
Sets a server info value
xmlrpc_server_server_info in servers/xmlrpc_server/xmlrpc_server.module
Implementation of hook_server_info().
1 invocation of hook_server_info()
services_get_servers in ./services.module
Returns information about the installed server modules on the system.

File

docs/services.servers.api.php, line 22
Hooks provided by Services for the definition of servers.

Code

function hook_server_info() {
  return array(
    'name' => 'REST',
    'path' => 'rest',
    'settings' => array(
      'file' => array(
        'inc',
        'rest_server',
      ),
      'form' => '_rest_server_settings',
      'submit' => '_rest_server_settings_submit',
    ),
  );
}