1 ajax_example_node_form_alter.inc ajax_example_node_delete($node)

Implements hook_node_delete().

See also

ajax_example_form_node_form_alter()

File

modules/examples/ajax_example/ajax_example_node_form_alter.inc, line 145
This example shows how to use AJAX when altering a node form.

Code

function ajax_example_node_delete($node) {
  db_delete('ajax_example_node_form_alter')
    ->condition('nid', $node->nid)
    ->execute();
}