Active
Project:
Auto Expire
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Oct 2011 at 13:43 UTC
Updated:
26 Mar 2012 at 19:55 UTC
Jump to comment: Most recent file
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();| Comment | File | Size | Author |
|---|---|---|---|
| #1 | auto_expire-delete_nodes-1310736-0.patch | 1.76 KB | joekrukosky |
Comments
Comment #1
joekrukoskyHere is patch using node_delete_multiple - much cleaner, thanks giorgio79. This patch has NOT been tested yet.
Comment #1.0
joekrukoskyclarify