IT and beyond

I follow this useful howto by Tom Constant on how to add image submit buttons on Drupal forms. Since I got a JavaScript error on drupal.js (line 31: button is undefined), I rewrite Tom’s implementation, and now it works fine on Drupal 5.10: function phptemplate_button($element) { // Make sure not to overwrite classes. if (isset($element[‘#attributes’][‘class’])) …

Continue reading