8 Jul
2006
8 Jul
'06
6:43 p.m.
Karoly Negyesi wrote:
Hi,
Anyone written an image button form element module? It's easy, I am just sooo lazy :)
There's one in views.module Note that image buttons have some issues that make it difficult to just replace them, *but* I think a simple #after_build could actually fix that. (You can't use $op on an image_button because IE buggily does not return any kind of value for the image button. However, if you check each button directly, you can see which button was pressed. Therefore, the #after_build for each button could say "Hey I was pressed" and set the appropriate value in 'op' before the rest of the form can react.)