Jeroen De Dauw | 1 Jul 2012 21:12
Picon
Gravatar

Handling deletion using the latest revision

Hey,

I am writing some code that needs to be executed on every article deletion
and which needs the latest revision of the article that was deleted. Is
there any place (hook) where I can put this without doing a db read for the
revision? And if not, is there any place where I can put this where I
actually get the revision id I need or can obtain it without writing my own
query?

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil.
--
Jeroen De Dauw | 2 Jul 2012 12:09
Picon
Gravatar

Re: Handling deletion using the latest revision

Hey,

I ended up doing my own queries for this: http://pastebin.com/17wxZWTZ

Still hope someone will point out a nicer way of doing this though :)

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil.
--

Gmane