[support] Default PHP Code for CCK field

Cog Rusty cog.rusty at gmail.com
Fri Nov 2 10:57:10 UTC 2007


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/ ]
>


More information about the support mailing list