function node_delete

7.x node.module node_delete($nid)
6.x node.module node_delete($nid)

Deletes a node.

Parameters

$nid: A node ID.

10 calls to node_delete()
CommentNodeChangesTestCase::testNodeDeletion in drupal-7.x/modules/comment/comment.test
Tests that comments are deleted with the node.
EntityCrudHookTestCase::testNodeHooks in drupal-7.x/modules/simpletest/tests/entity_crud_hook_test.test
Tests hook invocations for CRUD operations on nodes.
FileFieldWidgetTestCase::testPrivateFileSetting in drupal-7.x/modules/file/tests/file.test
Tests a file field with a "Private files" upload destination setting.
ListFieldUITestCase::testListAllowedValuesFloat in drupal-7.x/modules/field/modules/list/tests/list.test
List (float) : test 'allowed values' input.
ListFieldUITestCase::testListAllowedValuesInteger in drupal-7.x/modules/field/modules/list/tests/list.test
List (integer) : test 'allowed values' input.

... See full list

4 string references to 'node_delete'
hook_trigger_info in drupal-7.x/modules/trigger/trigger.api.php
Declare triggers (events) for users to assign actions to.
node_delete_multiple in drupal-7.x/modules/node/node.module
Deletes multiple nodes.
trigger_node_delete in drupal-7.x/modules/trigger/trigger.module
Implements hook_node_delete().
trigger_trigger_info in drupal-7.x/modules/trigger/trigger.module
Implements hook_trigger_info().

File

drupal-7.x/modules/node/node.module, line 1233
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

Code

function node_delete($nid) {
  node_delete_multiple(array($nid));
}