form_item() isn't right in a few cases. Such as confirmation pages and things which should be using other form functions.

There was a subtle difference between form_select() and whatever taxonomy was doing. Thats why there is extra code here. I tested it a bit too.

CommentFileSizeAuthor
#8 taxonomy.module_4.diff5.1 KBdrumm
taxonomy.module_3.diff4.94 KBdrumm

Comments

Bèr Kessels’s picture

+1 from me. Untill we have a general confirmation API, we should use something like this.
Furthermore the form_select, instead of an ugly looped selector genreator makes sense.

dries’s picture

All other configuration pages (eg. locale module, menu module, etc.) all use form_item(). I'm likely to drop that bit, and have yet to see the feasability of a 'confirmation API' (it sounds difficult).

(Ber: it is not clear from your review whether you tested the patch or not.)

Bèr Kessels’s picture

Dries, I did not test the patch thouroughly. But from what I have seen and tested, the functionality does not change at all. Only the confirmation page looks more like the others we have.

Off-topic: Some handbook page with a test-program might be handy. I, for example have very little professional experience with testing. i just install it and click around a bit, but there must be some good methods.

dries’s picture

Ber: the confirmation page is less like the others we have. What makes you believe it looks more like the others?

Steven’s picture

Btw, I think the "confirmation API" that Bèr was talking about is just a simple form_ function to confirm various stuff in a consistent way. It's pretty simple to do.

dries’s picture

This patch seems to break adding terms to vocabularies with no hierarchies.

drumm’s picture

For the confimation pages: it is consistent with the block and input format admin pages.

For the adding terms, I am not suprised. Hopefully I can fix this in the next could days.

drumm’s picture

StatusFileSize
new5.1 KB

Fixes problem raised in #6 by Dries.

drumm’s picture

I think Dries committed this to HEAD

Anonymous’s picture