Hello,

Please don't hack drupal node functions, records from field tables were not removed because of this hack:

                  /* copied from node_delete - to bypass node_access - cache_clear_all moved outside the loop */

                  db_delete('node')
                  ->condition('nid', $record->nid)
                  ->execute();

                  db_delete('node_revision')
                  ->condition('nid', $record->nid)
                  ->execute();

Comments

joekrukosky’s picture

Assigned: Unassigned » joekrukosky
StatusFileSize
new1.76 KB

Here is patch using node_delete_multiple - much cleaner, thanks giorgio79. This patch has NOT been tested yet.

joekrukosky’s picture

Issue summary: View changes

clarify