<div dir="ltr"><div>I have the following code in my module:</div><div><br></div><div>    function mymodule_form_alter(&amp;$form, &amp;$form_state, $form_id) {</div><div>      if ($form_id == &#39;comment_node_blog_form&#39;) {</div>
<div>        $form[&#39;#node&#39;]-&gt;content[&#39;links&#39;][&#39;comment&#39;][&#39;#links&#39;][&#39;comment-add&#39;][&#39;title&#39;] = t(&#39;Post a comment&#39;);</div><div>        $form[&#39;#node&#39;]-&gt;actions[&#39;submit&#39;] = t(&#39;Post comment&#39;);</div>
<div>        unset($form[&#39;#node&#39;]-&gt;actions[&#39;preview&#39;]);</div><div>    var_dump($form);</div><div>  }</div><div><br></div><div>When I look at the var_dump, the form fields are set as intended. However, in looking at the form, the title still has &quot;Add new comment&quot;, the submit button is unchanged, and the preview button is still present.</div>
<div><br></div><div>In searching the page content (including the var_dump output) the ONLY place &#39;Add&#39; exists is in the text of the form ... NOT in the content of the var_dump. The only way I can see that happening is if the form array is being changed back after my hook, so I tried changing the module weight to 99 (via mysql) and clearing cache. No difference.</div>
<div><br></div><div><br></div>-- <br>---<div><a href="http://drupal.org/user/367108" target="_blank">drupal.org/user/367108</a></div><div><a href="http://linkedin.com/in/jeffrgreenberg" target="_blank">linkedin.com/in/jeffrgreenberg</a></div>
<div><a href="http://accidentalcoder.com" target="_blank">accidentalcoder.com</a> / <a href="http://ayendesigns.com" target="_blank">ayendesigns.com</a></div><div>@accidentalcoder</div>
</div>