Closed (fixed)
Project:
Ubercart Event Registration
Version:
6.x-1.0-beta5
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2011 at 01:52 UTC
Updated:
10 Feb 2011 at 21:50 UTC
Comments
Comment #1
Rob_Feature commentedSure, so you want to enforce the default quantity and hide the field, correct? Probably the best way to do this is to have a small module which does it for you. You'd use hook_form_alter() and set [#access] to false (which allows you to also add a permission if you want some users to be able to see it). So, it might look something like:
I'm not 100% sure that's right (it's off the top of my head) but something like that should do it. Check out hook_form_alter()
Comment #2
Rob_Feature commented