function _services_arg_value in Services 7.3
Same name and namespace in other branches
- 6.3 services.runtime.inc \_services_arg_value()
13 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.
File
- includes/
services.runtime.inc, line 385 - 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;
}