<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>I discovered what it was although I don't 
understand why!</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>the custom module with the form_alter. At some 
point between june 3 and june 18, its weight was altered from 0 to -99. Once I 
put it back to 0, everything came back to normal, the cck fields appeared again 
on the node create form and the custom module did its work.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I'm not too clear on module weights so I'm not sure 
why that would have had such a dramatic effect.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>anyway, 5 hours, yes FIVE, of deleting the db, 
reinstalling old backups and poring over lines of code to see differences has 
come to an end by changing one integer.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>you gotta love db-driven websites!! 
:-)</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=neil@esl-lounge.com href="mailto:neil@esl-lounge.com">Neil 
  Coghlan</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=support@drupal.org 
  href="mailto:support@drupal.org">support@drupal.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, June 19, 2010 1:13 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [support] Disappearing CCK 
  fields</DIV>
  <DIV><BR></DIV>
  <DIV><FONT size=2 face=Arial>I have a content type with three CCK fields: 
  description, address and type. I have made a custom module with form_alter 
  changing certain aspects of these fields on the node create form...wrapping 
  them in a css class, altering the description, weight, etc.</FONT></DIV>
  <DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial>I noticed today that the custom module was not 
  only not having an effect but that the CCK fields themselves had disappeared 
  from the node create form. Odd! I disabled the custom module and back they 
  came. </FONT></DIV>
  <DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial>then I rolled the database back about 10 days, 
  reinstalled the custom module and everything was working fine. So now I am 
  trying to work out what is different between the june 3rd sql dump and the 
  june 18th sql dump and it's driving me crazy. I don't think the custom module 
  is the problem as it's just a 10 line form_alter function that was working 
  perfectly until some point between june 3rd and 18th.</FONT></DIV>
  <DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial>The other thing is in that custom module, today I 
  put the following to find out what fields/variables were in the 
  form:</FONT></DIV>
  <DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial>&nbsp; print $form_id;<BR>&nbsp; 
  $form['form_array'] = array(<BR>&nbsp;&nbsp;&nbsp; '#value' =&gt; 
  '&lt;pre&gt;'. print_r($form, 1) .'&lt;/pre&gt;',<BR>&nbsp;&nbsp;&nbsp; 
  '#weight' =&gt; '99',<BR>&nbsp; );</FONT></DIV>
  <DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial>with the june 3rd sql dump, I'm getting all the 
  CCK fields printed below, showing me all the arrays and variables I can access 
  and alter. In the june 18th sql dump, none of that is coming up at all. It's 
  as if they don't exist. When I go to Content Types, everything is normal, the 
  fields are there, etc.</FONT></DIV>
  <DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial>Has anyone heard of something like this before? 
  Any clues where I could start looking?</FONT></DIV>
  <DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial>Neil</FONT></DIV>
  <P>
  <HR>

  <P></P>-- <BR>[ Drupal support list | http://lists.drupal.org/ 
]</BLOCKQUOTE></BODY></HTML>