[support] Default PHP Code for CCK field

Chris McCreery chris.mccreery at gmail.com
Thu Nov 1 22:44:05 UTC 2007


Ok I'm so lost here, does anyone know what I should be putting in here.

So far I have

global $user;
array ( 0 => array ('uid' => $user=>uid));

Do I need return array? No idea what the format should be.

On 11/1/07, Xavier Bestel <xavier.bestel at free.fr> wrote:
>
>
> Le jeudi 01 novembre 2007 à 16:28 -0400, Chris McCreery a écrit :
> > Grrrrrrrrrrrrrrrrrrrrrrrrrrr, ok nothing seems to work everything I
> > put in there gives me the same error.
> >
> > This is what I have now.
> >
> > global $user;
> > return array(0 => array('uid' => $user=>uid));
>
> Maybe try
> array('uid' => $user['uid'])
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>



-- 
Chris McCreery
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20071101/45f2ffc0/attachment.htm 


More information about the support mailing list