parameters validation and worflows

Author Message

Guillaume

Friday 25 April 2008 2:17:12 am

Hi!

I'm trying to develop something like "placeusers" extension : move user to a specific user group. I want to move user according to a value filled in register form.

I want this value be checked before the worlflow process (a "placeusers" like process) launched.

How can I check this value and add entry in validation array in register.tpl? I believe that when validation fails, register.tpl is processing in register.php file module and returned but I can't understand how to modify register.tpl call parameters and add vallidation errors messages.

Second question, what workflowEventType return codes do mean? I tried some of them, and I never saw a difference between rejected, none or accepted (except a warning for none status). I belived that rejected status cancel the worflow process and go back to the page which call this worflow, in my case to register form.
Is there some doc or info about these return codes?

thanks

Guillaume

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