On 11/2/07, Chris McCreery chris.mccreery@gmail.com wrote:
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.
Global $user is an object, not an array, so the user id is $user->uid
Besides that, I can't say whether you need to return or to print something. I am not sure what you are trying to do, what errors exactly you are getting, or what doesn't work as it should.
On 11/1/07, Xavier Bestel xavier.bestel@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 -- [ Drupal support list | http://lists.drupal.org/ ]