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.

CommentFileSizeAuthor
isbn.patch3.28 KBxano

Comments

xano’s picture

Anybody home?

heine’s picture

Thanks a lot for your patch. I've already committed the imagebutton fix and will review the ISBN field later.

xano’s picture

Have 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.

xano’s picture

Status: Needs review » Closed (won't fix)

This actually doesn't belong in Elements.

xano’s picture

Assigned: xano » Unassigned