You are here

function slickgrid_callback_delete in Slickgrid 6

Same name and namespace in other branches
  1. 7 includes/slickgrid.callbacks.inc \slickgrid_callback_delete()

Callback function - delete a node

File

./slickgrid.callbacks.inc, line 37

Code

function slickgrid_callback_delete() {
  $node = node_load($_POST['nid']);

  // node_delete() has access check so it's safe to just try and delete the node
  node_delete($node->nid);
}