Thanks for the update on the print alert, that was really helpful. I've successfully got the long list of setting alerts to work in my config file. Unfortunately I can't get this simple line to work - WorkflowRequest::set_alert('WorkflowPublicationRequest', 'approve', 'publisher', 'false'); When I do the print alert it seems to have taken correctly here is what it prints...
Array ( [WorkflowPublicationRequest] => Array ( [request] => Array ( [author] => [publisher] => 1 ) [approve] => Array ( [author] => 1 [publisher] => false ) [deny] => Array ( [author] => 1 [publisher] => 1 ) [cancel] => Array ( [author] => 1 [publisher] => 1 ) [comment] => Array ( [author] => [publisher] => ) [requestedit] => Array ( [author] => 1 [publisher] => [approver] => ) ) [WorkflowDeletionRequest] => Array ( [request] => Array ( [author] => [publisher] => 1 ) [approve] => Array ( [author] => 1 [publisher] => 1 ) [deny] => Array ( [author] => 1 [publisher] => 1 ) [cancel] => Array ( [author] => 1 [publisher] => 1 ) [comment] => Array ( [author] => [publisher] => ) ) )
If I'm looking at this right, then this line... [approve] => Array ( [author] => 1 [publisher] => false ) would seem to be correct. However the publishers still get emailed. In the long list, when I change to this...
'approve' => array(
'author' => true,
'publisher' => false
),
It works as expected. I'm happy now that it does what I hoped without hacking the core. However, I thought I should post this info, just in case set_alert has a bug that can be fixed in a future rev.
Thanks again for all the help,
Andrew