Re: Re: Re: I need some guidance

raspberryheaven's picture
Offline
Joined: 09/23/2008
Juice: 47
Re: Re: Re: I need some guidance

Ok. I found it. It is indeed product_node_form so I have

<?php
// $Id$

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

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

But when I put the module in my custom folder and then click on admin or any button to go and enable the module, I get a white screen of death. (I'm using a local install of drupal to work on this called Bitnami.) Anyway.....Not really sure what's up now.
The form_id value was found way down on the page after most of the input items like the SKU Field. Is that important? I thought it would have been before but then, I 'm really new to drupal module programing and php.

raspberryheaven

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