You are here

function nodehierarchy_node_delete_submit in Node Hierarchy 6

Same name and namespace in other branches
  1. 5 nodehierarchy.module \nodehierarchy_node_delete_submit()
  2. 6.3 nodehierarchy.module \nodehierarchy_node_delete_submit()
  3. 6.2 nodehierarchy.module \nodehierarchy_node_delete_submit()
  4. 7.2 nodehierarchy.module \nodehierarchy_node_delete_submit()

Submit function for the node delete confirm form.

1 string reference to 'nodehierarchy_node_delete_submit'
nodehierarchy_form_alter in ./nodehierarchy.module
Implementation of hooks_form_alter().

File

./nodehierarchy.module, line 475

Code

function nodehierarchy_node_delete_submit($form, $form_state) {
  $form_values = $form_state['values'];
  if ($form_values['confirm'] && $form_values['nodehierarchy_delete_children']) {
    nodehierarchy_delete_children($form_values['nid']);
  }
}