Timeline for How to theme a radio button field on node edit form?
Current License: CC BY-SA 3.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 9, 2018 at 5:54 | history | tweeted | twitter.com/StackDrupal/status/1016198897427939328 | ||
| Jul 8, 2018 at 20:18 | history | edited | avpaderno♦ | edited tags | |
| Nov 17, 2016 at 8:41 | review | Suggested edits | |||
| Nov 17, 2016 at 9:12 | |||||
| May 3, 2013 at 17:34 | answer | added | tmsimont | timeline score: 0 | |
| Sep 22, 2012 at 1:25 | history | protected | avpaderno♦ | ||
| May 15, 2012 at 20:47 | vote | accept | camcam | ||
| May 7, 2012 at 6:28 | answer | added | camcam | timeline score: 2 | |
| May 6, 2012 at 9:55 | history | edited | camcam | CC BY-SA 3.0 | added 332 characters in body |
| May 6, 2012 at 7:15 | answer | added | Alex Petrov | timeline score: 2 | |
| May 6, 2012 at 7:05 | history | edited | camcam | edited tags | |
| May 6, 2012 at 5:28 | history | edited | camcam | CC BY-SA 3.0 | edited title |
| May 5, 2012 at 16:05 | comment | added | camcam | By the way, the whole point of this is to be able to add a distinct big background image to each radio button, depending on the option it represents. It would also do adding background to the label, but it has no distinct class. So I need a wrapper. | |
| May 5, 2012 at 15:32 | comment | added | camcam | Thanks for the hint, but... the problem is that theme_radio() returns html for 1 radio button containing just <input> element. This html is then rendered by theme_form_element() and wrapped in div which I described above. It would be good to be able to somehow add e.g. a '#theme_wrapper' function to this element, but I have no idea how. It should be done during preprocess, i.e. at the stage of creating the render array. I checked in Theme Developer, but there are no preprocess or process functions for form radio, and the only candidate function name is form_element().. looks very high level :( | |
| May 5, 2012 at 9:44 | comment | added | Andreas W. Wylach | Maybe this link give you a hint on how to do that ... encodez.com/blog/how-to-theme-radio-drupal.html | |
| May 5, 2012 at 9:35 | history | asked | camcam | CC BY-SA 3.0 |