Thanks but still no luck just that same error. Since I'm just trying to specify the default for this field and it is already getting the possible users to reference am I just trying to specify the default value? If so then do I need to run a query or just tell Drupal which uid I'd like to use? Would the following work? ( it doesn't but that just might be my syntax.
<br><br>global $user
<br>return array(<br> 0 => array('uid' => $user=>uid)<br>);<br><br><div><span class="gmail_quote">On 11/1/07, <b class="gmail_sendername">Earnie Boyd</b> <<a href="mailto:earnie@users.sourceforge.net">
earnie@users.sourceforge.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Quoting Chris McCreery <<a href="mailto:chris.mccreery@gmail.com">
chris.mccreery@gmail.com</a>>:<br><br>> Thanks Earnie but I get the following error:<br>><br>> The default value php code returned an incorrect value<br>> Expected format :<br>><br>> array(<br>> 0 => array('uid' => value for uid),
<br>> // You'll usually want to stop here. Provide more values<br>> // if you want your 'default value' to be multi-valued :<br>> 1 => array('uid' => value for uid),<br>> 2 => ...
<br>> );<br>><br>> Returned value :<br>><br>> So I assume it needs an array and would the $global user already exist?<br>><br><br>$ret[] = array('uid'=>$u->uid,'name'=>$u->name);
<br><br>Yes the global $user exists. I'm not familiar with CCK user reference<br>but was giving you code based on your earlier example and your stated<br>requirement.<br><br>HTH,<br>Earnie -- <a href="http://for-my-kids.com/">
http://for-my-kids.com/</a><br>-- <a href="http://give-me-an-offer.com/">http://give-me-an-offer.com/</a><br><br>--<br>[ Drupal support list | <a href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]<br></blockquote>
</div><br><br clear="all"><br>-- <br>Chris McCreery