Forums / Setup & design / Approve event

Approve event

Author Message

Marko Žmak

Sunday 06 November 2005 7:10:27 am

The aprove event is used to aprove publishing of an object in eZ, thah I know. It works OK when e new object i created. But I would like to know does it work when an exsisting object is edited, and how?

What I would actually want to know is can editing of an exsisting object be approved/rejected?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Bruce Morrison

Sunday 06 November 2005 3:01:50 pm

Hi Marko

The approve event is a before/publish event,which means it gets triggered each time an object is sent for publishing. So, yes it gets run for the initial object as well as any subsequent edits and works exactly the same in both cases.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Marko Žmak

Tuesday 08 November 2005 3:24:05 pm

Thanks for the reply. Another question. Can the same thing be done for deleting or moving an object? It seems to me the answer is now, but I would like someone to confirm that.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Bruce Morrison

Tuesday 08 November 2005 4:13:45 pm

Hi Marko

The only places it's possible to inject workflow in the content module is reading & publishing (without hacking the core dist of course).

See kernel/content/operation_definition.php

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish