Comments

robin monks’s picture

Oh, and I've test this, and it works.

Robin

robin monks’s picture

StatusFileSize
new3.96 KB

A bug I missed (thanks UnConeD!).

Robin

drumm’s picture

I read over the code quickly and this caught my eye:

+  $filter    = db_fetch_object($result);
+  $filter[0] = t('-- threshold --');

Even though PHP might not complain we should prolly decide on array or object.

robin monks’s picture

StatusFileSize
new3.96 KB

Good point, I missed that.

Robin

robin monks’s picture

StatusFileSize
new3.96 KB

Drumm hath found another bug...

Robin

robin monks’s picture

StatusFileSize
new4.08 KB

Updated version with killes' comments added in the code (whitespacing) and with a lot less bulky code and theme recalls

Robin

robin monks’s picture

StatusFileSize
new4.08 KB

Final Version, removes 4 unneeded functions. Tested to work. Please comment.

Robin

robin monks’s picture

StatusFileSize
new4.04 KB

Yelp, wrong patch....

jose reyero’s picture

After applying this patch, the "threshold" drop-down is gone.

robin monks’s picture

StatusFileSize
new4.48 KB

There was a glitch in the patch that caused the threshhold dropdown never to display. This version fixes that, although moderation may be broken already by Moshe's patch (as it won't work with, or without, this patch).

Robin

killes@www.drop.org’s picture

The patch looks very nice becasue it removes a lot of crufty code. I've no time to test it, though.

dries’s picture

This patch is likely to be deprecated when the new form API is ready. I'm OK with it but haven't tested it yet.

drumm’s picture

I think this can only make the form converting job easier. Lets go ahead and put this patch in once reviewed unless anyone working directly on the new form api objects.

killes@www.drop.org’s picture

Dries, please commit I can't bear it to see that crufty code in Drupal.

robin monks’s picture

Status: Needs review » Reviewed & tested by the community

Placing in queue per Dries.

Robin

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)