[development] image button form element module?
Earl Miles
merlin at logrus.com
Sat Jul 8 16:43:07 UTC 2006
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.)
More information about the development
mailing list