<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Well, that's an interesting point, and negates my previous comment.
Since I'm starting with $form[$var] = array( I won't have any
artifacts from the original field, will I? So wouldn't the field then
be composed of only those two parameters, #type and #value? That should
be all it needs. Changed it to 'value' from 'hidden', unfortunately
there was no side benefit of correcting it.<br>
<br>
When I change it from $form[$var] = array( to $form[$var]['#type'] =
etc. I no longer get the from, but get the error Only variables can
be passed by reference <br>
<br>
Jeff<br>
<br>
On 6/28/2010 10:57 AM, Steve Ringwood wrote:
<blockquote cite="mid:4C28B860.7030602@mailbag.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
Whats the value of $var?<br>
<br>
Because it's a CCK field you may need to use<br>
$form[$var]['#type'] = 'hidden';<br>
$form[$var]['#value'] = $nid;<br>
to avoid clearing elements CCK expects to find. <br>
<br>
(Side note: I would use 'value' instead of 'hidden')<br>
<br>
Nevets<br>
<br>
</blockquote>
<br>
</body>
</html>