Help Needed with a Hook_form_alter Module I've written the following module and it's not working. By that I mean it's not printing the #prefix to the webform above the 'resource_name' field. In fact, it's not printing it anywhere on the page. I'm trying to alter a webform-created node. I've already verified the form_id is correct as listed. And according to the webform the 'resource_name' is the field key for the field above which I want to place the #prefix markup. Any help is appreciated, thanks.

Note also that yes I've enabled the module.

    &lt;?php

    function webformalter_form_alter(&amp;$form, &amp;$form_state, $form_id) {
      // Check when the right form is passed
      if ($form_id == ' webform_client_form_289') {

        // Add the directions
        $form['resource_name'] = array(
          '#prefix' =&gt; '&lt;p&gt;Do you know of a high-quality resource that should be in our 
listings?&lt;/p&gt;&lt;p&gt;Please let us know! We will review it before publishing it, and we will 
follow up with any questions.&lt;/p&gt;',
        );
  }
}
I think your not setting the prefix correctly. I think you want to do something more like this:

if ($form_id == ' webform_client_form_289') {
    // Add the directions
    $form['submitted']['#prefix'] = '&lt;p&gt;Do you know of a high-quality resource that should be in our listings?&lt;/p&gt;&lt;p&gt;Please let us know! We will review it before publishing it, and we will follow up with any questions.&lt;/p&gt;';
}


Looks like what your trying to do on in your code is set resource_name to be an array with just prefix in it.