Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have created an ISBN field. It features validation for both 10- and 13-digit numbers.
The attached patch should patch the elements.module currently in CVS properly. It's my first patch and I hope I did it the right way.
By the way: I took the liberty of fixing a minor typo in hook_elements(). For one element $type was used instead of $types. Because of this the element would not have been available.
Comment | File | Size | Author |
---|---|---|---|
isbn.patch | 3.28 KB | Xano | |
Comments
Comment #1
XanoAnybody home?
Comment #2
Heine CreditAttribution: Heine commentedThanks a lot for your patch. I've already committed the imagebutton fix and will review the ISBN field later.
Comment #3
XanoHave you already had a chance to look at it? If you like it, I want to ask you for CVS access so I can add some more elements and port the module to Drupal 6 as well.
Comment #4
XanoThis actually doesn't belong in Elements.
Comment #5
Xano