Active
Project:
Ubercart Auction
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2011 at 14:17 UTC
Updated:
27 Oct 2011 at 14:17 UTC
Hi thanks for the module
Im just trying to get a new field in the auction form.
I can do this by editing the module code but id rather write my own module and edit the form with hook alter.
usually I would do something like
function mymodule_form_alter(&$form, $form_state, $form_id) {
switch ($form_id) {
case 'uc_auction_bid_table_form':
$form['example'] = array(
'#title' => t('example title'),
'#type' => 'textfield',
);
}
}
?>
This just isnt working though.
I can use this method to edit the current fields on the form but not add my own.