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
Support from Acquia helps fund testing for Drupal Acquia logo

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