You are here

function _node_resource_delete in Services 6.3

Same name and namespace in other branches
  1. 6.2 services/node_service/node_resource.inc \_node_resource_delete()
  2. 7.3 resources/node_resource.inc \_node_resource_delete()
  3. 7 services/node_service/node_resource.inc \_node_resource_delete()

Delete a node given its nid.

Parameters

$nid: Node ID of the node we're deleting.

Return value

The node's nid.

2 string references to '_node_resource_delete'
hook_services_resources in ./services.services.api.php
Implementation of hook_services_resources(). Defines function signatures for resources available to services.
_node_resource_definition in resources/node_resource.inc
@file This file will define the resources for dealing directly with nodes

File

resources/node_resource.inc, line 401
This file will define the resources for dealing directly with nodes

Code

function _node_resource_delete($nid) {
  node_delete($nid);
  return TRUE;
}