How pass arguments?
ggalan1173 - September 30, 2009 - 16:33
| Project: | Validation API |
| Version: | 6.x-1.0-rc5 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hi, I'm trying to do the following validation:
When creating a group I need to validate if the Group manager is assigned a role depending on the Group.
No matter how to do this. the point is that I need the group id inside the PHP validation code.
I have no field in the form with this value. Can I get it from the URL? (the url is .../node/28/edit) where 28 is the id of the group.
Or maybe I can pass an argument?
I attached the validator to the name field of the group form, and I have the field to pass the argument, but, which values am I able to pass there?
thanks a lot
Gabriel
