function bulk_photo_nodes_delete_node in Bulk File Nodes 7
Deletes an individual bulk photo node.
1 string reference to 'bulk_photo_nodes_delete_node'
- bulk_photo_nodes_create_subform in ./
bulk_photo_nodes.module - Generates all node subforms in bulk_photo_nodes_add_form().
File
- ./
bulk_photo_nodes.module, line 587 - hooks and helper functions for bulk photo node.
Code
function bulk_photo_nodes_delete_node($form, &$form_state) {
$key = $form_state['triggering_element']['#name'];
file_delete($form_state['saved_files'][$key]['file_object']);
unset($form_state['saved_files'][$key]);
unset($form_state['values']['nodes'][$key]);
$form_state['removal'] = $key;
$form_state['rebuild'] = TRUE;
}