| 6 node.pages.inc | node_form_delete_submit($form, &$form_state) |
| 7 node.pages.inc | node_form_delete_submit($form, &$form_state) |
| 8 node.pages.inc | node_form_delete_submit($form, &$form_state) |
Button submit function: handle the 'Delete' button on the node form.
1 string reference to 'node_form_delete_submit'
File
- modules/
node/ node.pages.inc, line 309 - Page callbacks for adding, editing, deleting, and revisions management for content.
Code
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));
}
Login or register to post comments