You are here

function services_set_server_info_from_array in Services 6.3

Same name and namespace in other branches
  1. 7.3 includes/services.runtime.inc \services_set_server_info_from_array()

Sets multiple server info values from a associative array.

Parameters

array $values: An associative array containing server info values.

Return value

void

1 call to services_set_server_info_from_array()
services_endpoint_callback in ./services.module
Menu system page callback for server endpoints.

File

./services.runtime.inc, line 288
Contains functions that only are necessary when a service call is made. This has broken out so that this code isn't loaded for every page load.

Code

function services_set_server_info_from_array($values) {
  $info = services_server_info_object();
  foreach ($values as $key => $value) {
    $info->{$key} = $value;
  }
}