[support] Good Drupal book recommandation ? (SOLVED: How to access a user id & nickname from PHP ?)

Damien Cirotteau dcirotteau at rue89.com
Fri May 7 15:48:58 UTC 2010


Drupal Pro Development is a must have.
http://www.drupalbook.com/

On Fri, May 7, 2010 at 5:30 PM, Xavier Bestel <xavier.bestel at free.fr> wrote:

> On Fri, 2010-05-07 at 16:24 +0200, Xavier Bestel wrote:
> > Hi again,
> >
> > So I've build this CCK node with various fields, some of them are
> > userreferences. I want to access some values from PHP (in a custom CCK
> > computedfield), but it doesn't seem to work:
> >
> > - I can access e.g. the date from my field_date using
> > $node->field_date[0]['value'];
> >
> > - If I try to access a user from field_proprio, I get nothing. I tried
> > $node->field_proprio[0]['value'] and
> > $node->field_proprio_uid[0]['value'] but none of them work.
> >
> > Could anyone tell me how I can access a user, or which bit of the
> > copious Drupal doc I should look at ?
>
> Sorry for wasting your time reading these two emails, I finally googled
> successfully for an answer.
> For those interested: $node->field_proprio[0]['uid']
>
> I'm sure there are many other veery interesting things in Drupal. As I
> have a little problem to read big docs on-screen, does anyone have a
> good book recommandation for people who know want to do advanced things
> (like module creation) with Drupal ?
>
> Thanks,
>
>        Xav
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>



-- 
Damien Cirotteau
Rue89 -- http://www.rue89.com
** Nouvelle adresse **
24 rue de l'Est
75020 Paris
** Nouveau téléphone **
+33 (0)1 71 18 20 11
====================================
Pour soutenir Rue89 : http://mur.rue89.com/
====================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100507/691b19ff/attachment.html 


More information about the support mailing list