Re: Re: Mike,

Posts: 111
Joined: 08/07/2007
Bug FinderGetting busy with the Ubercode.

That was a custom field I've added with hook_form_alter.

<?php
function hook_alter($form_id, &$form){
  if (
$form_id == 'taxonomy_form_term' && $form['vid']['#value'] == variable_get('uc_catalog_vid', 0)
||
$form_id == 'taxonomy_form_vocabulary' && $form['vid']['#value'] == variable_get('uc_catalog_vid',
0 )){
     
$form['image']['remove'] = array('#type' => 'checkbox',
       
'#title' => t('Remove category image: !image', array('!image' => $image_display)),
       
'#weigt' => 1,
      );
    }
  }
}
?>

Tableless catalog By: mikejoconnor (20 replies) Wed, 10/03/2007 - 08:04