[eluser]jamesf[/eluser]
Just a quick question, couldn't seem to find anything about it when I searched...
Is there a way of passing variables to your custom validation callbacks e.g.
Code:
$rules['username'] = "callback__valid_username($user_id)";
The project I'm working on allows 'admins' to create and edit 'users', when adding a new user I've created a function that will check the database for a duplicate username and this is working ok.
The problem comes when I'm editing a 'user', I need to do a check on the username whilst knowing the id of the user in question.
Regards,
James