You are here

function _services_arg_value in Services 6.3

Same name and namespace in other branches
  1. 7.3 includes/services.runtime.inc \_services_arg_value()
11 calls to _services_arg_value()
_comment_resource_create in resources/comment_resource.inc
Adds a new comment to a node and returns the cid.
_comment_resource_update in resources/comment_resource.inc
Updates a comment and returns the cid.
_file_resource_create in resources/file_resource.inc
Adds a new file and returns the fid.
_node_resource_create in resources/node_resource.inc
Creates a new node based on submitted values.
_node_resource_update in resources/node_resource.inc
Updates a new node based on submitted values.

... See full list

File

./services.runtime.inc, line 431
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_arg_value($data, $field) {
  if (isset($data[$field]) && count($data) == 1 && is_array($data[$field])) {
    return $data[$field];
  }
  return $data;
}