_services_arg_value

  1. services
    1. 7.3
    2. 6.3
Versions
6.3 – 7.3 _services_arg_value($data, $field)

▾ 13 functions call _services_arg_value()

_comment_resource_create in resources/comment_resource.inc
_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.
_taxonomy_resource_create_access in resources/taxonomy_resource.inc
Access callback for term creating.
_taxonomy_resource_update_access in resources/taxonomy_resource.inc
Access callback for term updating.
_taxonomy_term_resource_create in resources/taxonomy_resource.inc
Create a new taxonomy term based on submitted values.
_taxonomy_term_resource_update in resources/taxonomy_resource.inc
Update a taxonomy term based on submitted values.
_taxonomy_vocabulary_resource_create in resources/taxonomy_resource.inc
Create a new taxonomy vocabulary based on submitted values.
_taxonomy_vocabulary_resource_update in resources/taxonomy_resource.inc
Update a taxonomy vocabulary based on submitted values.
_user_resource_create in resources/user_resource.inc
Create a new user.
_user_resource_update in resources/user_resource.inc
Update an existing user.

Code

./services.runtime.inc, line 367

<?php
function _services_arg_value($data, $field) {
  if (isset($data[$field]) && count($data) == 1 && is_array($data[$field])) {
    return $data[$field];
  }
  return $data;
}
?>