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>&nbsp; 0 =&gt; array(&#39;uid&#39; =&gt; $user=&gt;uid)<br>);<br><br><div><span class="gmail_quote">On 11/1/07, <b class="gmail_sendername">Earnie Boyd</b> &lt;<a href="mailto:earnie@users.sourceforge.net">
earnie@users.sourceforge.net</a>&gt; 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 &lt;<a href="mailto:chris.mccreery@gmail.com">
chris.mccreery@gmail.com</a>&gt;:<br><br>&gt; Thanks Earnie but I get the following error:<br>&gt;<br>&gt; The default value php code returned an incorrect value<br>&gt; Expected format :<br>&gt;<br>&gt; array(<br>&gt;&nbsp;&nbsp;0 =&gt; array(&#39;uid&#39; =&gt; value for uid),
<br>&gt;&nbsp;&nbsp;// You&#39;ll usually want to stop here. Provide more values<br>&gt;&nbsp;&nbsp;// if you want your &#39;default value&#39; to be multi-valued :<br>&gt;&nbsp;&nbsp;1 =&gt; array(&#39;uid&#39; =&gt; value for uid),<br>&gt;&nbsp;&nbsp;2 =&gt; ...
<br>&gt; );<br>&gt;<br>&gt; Returned value :<br>&gt;<br>&gt; So I assume it needs an array and would the $global user already exist?<br>&gt;<br><br>$ret[] = array(&#39;uid&#39;=&gt;$u-&gt;uid,&#39;name&#39;=&gt;$u-&gt;name);
<br><br>Yes the global $user exists.&nbsp;&nbsp;I&#39;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