Adjusting event/approve!?

Author Message

Clemens T

Friday 02 September 2005 5:01:18 am

Hello all,
I'm currently trying to adjust the approve event to my needs.. which are:

- automatically subscribe a user-group to the item that is approved
- this usergroup should receive a mailmessage when the item is approved.

I'm having the following problems.. where should I put the notification-rule-subscription.. currently I'm editing: ezapprovecollaborationhandler.php , but my guess is that I can't get the NodeID (of the item that is going to be published) because on the bottom of this file, the item doesn't exist in the content-tree (it will probably be published after this event).

Is this correct, or is there a way for me to get the NodeId on the bottom of the :

    function handleCustomAction( &$module, &$collaborationItem )
    {
...
}

function?

Thanks for any help!
Clemens

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.