function node_multiple_delete_confirm_submit in Drupal 5
Same name and namespace in other branches
- 4 modules/node.module \node_multiple_delete_confirm_submit()
- 6 modules/node/node.admin.inc \node_multiple_delete_confirm_submit()
- 7 modules/node/node.admin.inc \node_multiple_delete_confirm_submit()
File
- modules/
node/ node.module, line 1704 - The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.
Code
function node_multiple_delete_confirm_submit($form_id, $form_values) {
if ($form_values['confirm']) {
foreach ($form_values['nodes'] as $nid => $value) {
node_delete($nid);
}
drupal_set_message(t('The items have been deleted.'));
}
return 'admin/content/node';
}