function node_multiple_delete_confirm_submit in Drupal 4
Same name and namespace in other branches
- 5 modules/node/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.module, line 1239 - The core that allows content to be submitted to the site.
Code
function node_multiple_delete_confirm_submit($form_id, $edit) {
if ($edit['confirm']) {
foreach ($edit['nodes'] as $nid => $value) {
node_delete($nid);
}
drupal_set_message(t('The items have been deleted.'));
}
return 'admin/node';
}