function node_service_load in Services 5
Returns a specified node.
1 string reference to 'node_service_load'
- node_service_service in services/
node_service/ node_service.module - Implementation of hook_service().
File
- services/
node_service/ node_service.module, line 104 - The module which exposes services related to nodes
Code
function node_service_load($nid, $fields = array()) {
$node = services_node_load(node_load($nid), $fields);
if (!$node) {
return services_error(t("Could not find the node."));
}
return $node;
}