2 replies [Last post]
Hunabku's picture
Offline
Joined: 08/14/2007
Juice: 25
Was this information Helpful?

For some reason the products body field doesn't go away after i leave its label blank. It still shows the label "Description" on the submit product screen (even though there is no body field label entered in product content types admin.)

This inability to hide the body field only occurs in the product content type - not in others.

Hunabku's picture
Offline
Joined: 08/14/2007
Juice: 25
OK i got it!

OK i got it . . .

Turns out that last time i uninstalled Ubercart i missed the last module that you can disable - the Table API - after uninstalling that one i'd assume that the body field hiding prob would go away since all table data should be gone - but it didn't go away.

So i used the following to hide the field for product entry - in my form_alter:

if($form_id == "product_node_form") {
$form['body_filter']['#type'] = 'hidden';
}

I am still gonna need to hide it in end-user screens.

pebosi@drupal.org's picture
Offline
Uber DonorBug Finder
Joined: 09/05/2007
Juice: 47
Re: OK i got it!

Try using drupal.org/project/contemplate