Form submission handler for node_form().
Handles the 'Delete' button on the node form.
function node_form_delete_submit($form, &$form_state) {
$destination = array();
if (isset($_GET['destination'])) {
$destination = drupal_get_destination();
unset($_GET['destination']);
}
$node = $form['#node'];
$form_state['redirect'] = array(
'node/' . $node->nid . '/delete',
array(
'query' => $destination,
),
);
}