Drupal глазами разработчика

Кастомный html для радиокнопок

как придать радиокнопкам такую структуру? Нужно только для одной формы, переопределять все theme_form_element, theme_form_element_label, theme_radios, nicorette_radio очень неудобно
<span style="color: #009900;"><<a href="http://december.com/html/4/element/div.html"   rel="nofollow" ><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">"form-item"</span>></span>
                     <span style="color: #009900;"><<a href="http://december.com/html/4/element/p.html"   rel="nofollow" ><span style="color: #000000; font-weight: bold;">p</span></a>></span>текст<span style="color: #009900;"><<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"   rel="nofollow" ><span style="color: #000000; font-weight: bold;">p</span></a>></span>
                      <span style="color: #009900;"><<a href="http://december.com/html/4/element/label.html"   rel="nofollow" ><span style="color: #000000; font-weight: bold;">label</span></a>></span>
                        <span style="color: #009900;"><<a href="http://december.com/html/4/element/input.html"   rel="nofollow" ><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">"radio"</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">"1"</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">"radio-2"</span>></span>
                        опция 1
                      <span style="color: #009900;"><<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/label.html"   rel="nofollow" ><span style="color: #000000; font-weight: bold;">label</span></a>></span>
                      <span style="color: #009900;"><<a href="http://december.com/html/4/element/label.html"   rel="nofollow" ><span style="color: #000000; font-weight: bold;">label</span></a>></span>
                        <span style="color: #009900;"><<a href="http://december.com/html/4/element/input.html"   rel="nofollow" ><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">"radio"</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">"2"</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">"radio-2"</span>></span>
                        опция 2
                      <span style="color: #009900;"><<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/label.html"   rel="nofollow" ><span style="color: #000000; font-weight: bold;">label</span></a>></span>
                    <span style="color: #009900;"><<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"   rel="nofollow" ><span style="color: #000000; font-weight: bold;">div</span></a>></span>

0 комментариев

Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.