You are here

function _rest_server_settings_submit in Services 6.3

Same name and namespace in other branches
  1. 7.3 servers/rest_server/rest_server.inc \_rest_server_settings_submit()

Submit handler for the services REST server settings form.

Parameters

object $endpoint: The endpoint that's being configured.

array $values: The partial form-state from services.

Return value

array The settings for the REST server in this endpoint.

2 string references to '_rest_server_settings_submit'
hook_server_info in ./services.servers.api.php
Identifies a server implementation to Services.
rest_server_server_info in servers/rest_server/rest_server.module
Implements hook_server_info().

File

servers/rest_server/rest_server.inc, line 71
Autoload classes and server settings.

Code

function _rest_server_settings_submit($endpoint, $values) {
  $values['formatters'] = array_map('_rest_server_settings_not_zero', $values['formatters']);
  $values['parsers'] = array_map('_rest_server_settings_not_zero', $values['parsers']);
  return $values;
}