Closed (fixed)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2009 at 15:04 UTC
Updated:
19 Mar 2010 at 01:30 UTC
I am using options to display a set different text modifications that can be applied to a poster product. The text descriptions are max 280 characters long and they were cut out by the default form.
I found the form in uc_attribute_admin.inc:
$form['name'] = array(
'#type' => 'textfield',
'#title' => t('Name'),
'#description' => t('This name will appear to customers on product add to cart forms.'),
'#default_value' => $option->name,
'#required' => TRUE,
'#maxlength' => 300, // Added to accomodate my long descriptions.
'#weight' => 0,
);
The solution works fine up until I'll update the module, does anyone know how to solve this more elegantly?
Comments
Comment #1
tr commentedWrite a hook_form_alter() to modify the admin form without having to hack uc_attribute.admin.inc.
Comment #2
tr commented