Closed (fixed)
Project:
Webform
Version:
6.x-3.9
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 May 2011 at 11:04 UTC
Updated:
16 May 2011 at 19:42 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchIn _webform_render_phone(), you can't have this line of code:
Form API is not aware of a 'phone' element type. As I found out recently, you'll need to implement hook_elements() to make this work well. I'd suggest calling your new element "webform_phone" to match what I've done for Grid and Time components. See this issue and the second patch #1150576: The "time" component should use a #process function for expanding itself.
Please file questions about your own code as a support request, not a bug. According to the submission guidelines I don't help with custom code, but I'm always glad to see new components so this is a bit of an exception.
Comment #2
vernond commentedAh, okay, sorry about that. Thanks for the heads-up on hook_elements and FAPI
Comment #3
vernond commentedSorted - see attached if interested