Well I have tried and tried to use form_alter in every way I could think of and in ways that others have but the code is just ignored or goes to error;<br><br>function profilecloud_form_alter($form_id, &$form) {<br>$category = 'Medlemskonventet 2006';<br> if ($form_id == 'user_edit') {<br> $alteration = array('#description' => t('ALTERED!!!!')); <br> $form[$category]['edit-profile_matchmaking_2006'] = array_merge($form[$category]['edit-profile_matchmaking_2006'], $alteration);<br> }<br>}<br><br>produces a array merge error. $form[$category]['edit-profile_matchmaking_2006'] is not recognized as an array and forcing it returns no changes.<br><br>To get it to change this works. But the result is another complete form with a change within the original form.<br><br>function profilecloud_form_alter($form_id, &$form) {<br> $category = 'Medlemskonventet 2006';<br> if ($form_id == 'user_edit') {<br>
$alteration = array('#description' => t('ALTERED!!!!')); <br> $form[$category]['edit-profile_matchmaking_2006'] = array_merge($form[$category], $alteration);<br> }<br> }<br><br><b><i>Carl Mc Dade <carl_mcdade@yahoo.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> I am adding a markup field to a Profile form but only want the field to show after a certain textarea. The idea is to use the links in the markup field to enter text in the textarea above it. I have set in the working code and have no problem with it but am questioning the fact that hardcoding this in seems to be the only way.<br><br>Is there a way of doing this using the FormsAPI? a grouping syntax? Something like show this field only if a related field is present?<br><br>Is there a hook for FormsAPI that would help? <br><br><br>TIA<br><br><br><br><br><div>
<div><font face="Arial" size="2">Carl Mc Dade<br>____________________________<br> Web Developer for Hire</font></div> <div><font face="Arial" size="2"><a href="http://www.heroforhire.net">http://www.heroforhire.net</a><br><a href="mailto:info@heroforhire.net">info@heroforhire.net</a></font></div> <div><font face="Arial" size="2"><br> </font></div></div><div> </div><hr size="1">Yahoo! Messenger with Voice. <a href="http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com">Make PC-to-Phone Calls</a> to the US (and 30+ countries) for 2�/min or less.</blockquote><br><BR><BR><div> <div><font face="Arial" size="2">Carl Mc Dade<br>____________________________<br>Web Developer<br>Dataföreningen i Sverige AB<br>www.d4d.se<br>www.dfs.se<br></font></div><div><font face="Arial" size="2"><br> </font></div></div><p> 
                <hr size=1>Do you Yahoo!?<br> Next-gen email? Have it all with the <a href="http://us.rd.yahoo.com/evt=42241/*http://advision.webevents.yahoo.com/handraisers"> all-new Yahoo! Mail Beta.</a>