Skip to main content
9 events
when toggle format what by license comment
Sep 21, 2011 at 14:38 comment added oranges13 let us continue this discussion in chat
Sep 21, 2011 at 14:30 comment added avpaderno Did you define that theme function in hook_theme()?
Sep 21, 2011 at 14:28 comment added oranges13 When I use that, I don't GET any children, though. I get the theme'd radios element with no children. I have a seperate theme_mymodule_radio function but that doesn't seem to get called at all.
Sep 21, 2011 at 13:56 comment added avpaderno theme_radios() uses the following code: theme('form_element', $element, $element['#children']);. Even if you use a different theme function, you should still theme the child elements.
Sep 21, 2011 at 13:48 comment added oranges13 I have created the theme functions too. My issue comes that it's rendering the radios element just fine, but not the CHILDREN inside it. So I get a radio element formatted the way I want with no actual button choices.
Sep 21, 2011 at 13:28 comment added avpaderno "Creating Custom Elements Using Drupal 6.x" reports the following sentence: "If you use hook_elements() to define an element type, there is an implicit assumption that there will be a theme function with the same name as the element type used to render HTML of its instances."
Sep 21, 2011 at 13:17 history edited avpaderno CC BY-SA 3.0
added 115 characters in body
Sep 21, 2011 at 13:10 comment added oranges13 The only way I can get this to work is if in the custom mymodule_radios function I pass the $element array through the theme(form_element) function. Which means I have to customize that as well. That works, but I don't have any of my radio buttons. How do I tell it to build the radios and ALSO to theme the RADIO elements inside with a custom function?
Sep 20, 2011 at 23:07 history answered avpaderno CC BY-SA 3.0