Active
Project:
Taxonomy Image
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2012 at 00:15 UTC
Updated:
10 Feb 2012 at 21:22 UTC
I have a drop down select input it looks like this.
<select name="items_per_page" class="form-select" id="edit-items-per-page" ><option value="15" selected="selected">15</option><option value="30">30</option><option value="40">40</option><option value="60">60</option></select>
</div>
</div>
<div class="search-lang">
<label for="edit-lang">
Lang: </label>
<div class="form-item" id="edit-lang-wrapper">
<select name="lang" class="form-select" id="edit-lang" ><option value="All" selected="selected">- Any -</option><option value="12">Chinese</option><option value="9">English</option><option value="11">French</option><option value="29">Russian</option><option value="10">Spanish</option></select>
</div>
</div>is there a way to use taxonomoy term image in place of the html in the option tags.
I can not figure out how to do this and have tried everything.
Comments
Comment #1
nancydruIIRC, the Forms API does a check plain on the options, so it would seem not possible. It might be possible to fake a field with '#type' => 'markup', but that would be a lot of work. A hook_form_alter() might be useful as well.
Comment #2
alexborsody commentedI will try putting in html within the #type to fake a select dropdown. Thanks Nancy!