回覆回應

questions

Brian Williams's 的頭像

I have not had much luck with the devel module. Every time i install it i end up getting fatal errors. I was wondering if you knew how i could change the markup of my form to change the way radio buttons and checkboxes appear. The default drupal method just puts them in a row going down the page. I wanted to change it so that i could have them going across the page more like a table grid. Using your method i was able to specify my new template, and when i dump out the $form variable i can see the entire data structure, but i'm not quite sure how to change the markup for one individual input. I can print the contents of a field, such as title or body, or even the contents of a fieldset and i get all the nested elements. When i look at the structure of a checkbox input, it contains a item for allowed_values and has all the checkbox items listed, but i'm not sure how to specify the new markup. I know that if i call drupal_render on $form['field_checkbox'] its going to be formatted just the same way as it was before. Do you have any idea how to accomplish this or if its even possible? Feel free to email me directly if that's easier. Thanks.

回應

這個欄位的內容會保密,不會公開顯示。

Navigation

使用者登入