chirale

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

Tested on: Drupal 5.x Zen theme Requirements: JQuery Update Do you remember my Customize links menu in Drupal mini-howto? You can use it to change text links in image links renaming and customizing theme_links function (from theme.inc) and adding it to your template.php. On your template.php file, you have something like this: $imglink_path = path_to_theme() …

Continue reading