I used coder, now what?

Joined: 09/23/2008
Juice: 43

Ok. So I took torgosPizza's advice and ran coder and now i have no error messages when I run it on my module here. (I'm using drupal 6 btw) BUT! when I enabled it I got an error message relating to line 13 which is the if ($form_id =='product_node_forum'){ part.

Here is the full code:

<?php
// $Id$

/**
* @file
* Module to hold my customizations to Ubercart
*/

/**
* Implementation of hook_form_alter()
*/
function skudisable_module_form_alter(&$form, &$form_state, $form_id ) {
  if ($form_id == 'product_node_form') {
    $form['base']['model']['#required'] = FALSE;

  }
}

I am not strong at php yet. Could someone help me figure out why this won't work?

Removing SKU on product edit page By: jag (38 replies) Tue, 12/11/2007 - 22:12