How do I create a PHP validation for current user?

colinjones - October 12, 2009 - 23:25
Project:Validation API
Version:6.x-1.0
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I am completely lost... and there appears to be very little documentation and particularly examples..

I want to have a CCK field - text select box - that lists all the current users on the site, and when editing in a node form, the validator only allow you to select the user name that matches the currently logged in user. How can I do this?

#1

colinjones - October 14, 2009 - 11:47

Actually - how can I tell if my PHP is even being executed? It never seems to return a failure/error message or any other indication that it is running or do anything else even if I put a print command in there... seems like it isn't even running... where would any errors be logged? Even when I have accidentally put code in that I know has syntax errors it just seems to sail on without any issue...

#2

colinjones - October 15, 2009 - 20:03

If no one is wants to assist on this, instead could someone please post a few examples of PHP validation for me so that I might hack something together from them?! The only examples I have found are so basic as to be almost useless! Or maybe even point me to where some examples are... I have looked around and can't find anything really....

 
 

Drupal is a registered trademark of Dries Buytaert.