I Noticed that after deleting a lot of revisions, their location counterparts remained in the {location} table.
This may be a feature, not a bug. Nontheless, occasionally running DELETE location FROM location LEFT JOIN node_revisions ON oid=vid WHERE vid IS NULL AND type='node' removes them for those inclined to want them gone.
Don't forget your backups before you try.
Comments
Comment #1
BachusII commentedI can't seem to find a hook I can use to remove the location when its node/revision is deleted.
Guess I'll have to use a cronjob.
Anyway:
to list them, and
to remove them.
Comment #2
marcp commentedI think you're looking for hook_nodeapi('delete revision') -- take a look at forum.module's hook_nodeapi.
Comment #3
bdragon commentedMarking as duplicate of http://drupal.org/node/110334.