[support] Default PHP Code for CCK field

Chris McCreery chris.mccreery at gmail.com
Fri Nov 2 12:33:40 UTC 2007


Thanks guys but still the same none descriptive error. I tried both of the
suggestions but no luck.

On 11/2/07, Cog Rusty <cog.rusty at gmail.com> wrote:
>
> On 11/2/07, Xavier Bestel <xavier.bestel at free.fr> wrote:
> > > Any help would be awesome because as you can see I have limited coding
> > > skills.
> >
> > Cog just told you to try:
> >
> > global $user;
> > array ( 0 => array ('uid' => $user->uid));
>
>
> Either that, or (if you need a single expression)
>
> array ( 0 => array ('uid' => ($GLOBALS['user']->uid)) );
>
>
> > Note the difference: the last "=" has been replaced with a "-".
> >
> > HTH,
> >         Xav
> >
> >
> > --
> > [ Drupal support list | http://lists.drupal.org/ ]
> >
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>



-- 
Chris McCreery
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20071102/25b3b7d4/attachment.htm 


More information about the support mailing list