Closed (fixed)
Project:
Checkall
Version:
6.x-2.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2009 at 19:49 UTC
Updated:
2 Sep 2009 at 20:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
markus_petrux commentedAh, this is another good idea. It seems than the new addition to CCK, the new hook_widget_settings_alter() opened Pandora's box. :)
However, I think the patch needs work:
- use $settings instead of $v in checkall_widget_settings_alter().
- Also in checkall_widget_settings_alter(), use isset() to make sure widget attributes exist.
- The assignment to $children_checkall becomes too long. I would rather use if/else blocks for readability. I would also check if the checkall attribute isset.
- Do we want to add support for other widgets?
If you don't have the time do it, I'll revisit this issue later with a new patch for review. Thanks.
Comment #2
bshensky commentedYour suggestions sound spot on, but some of them might be just over my head at the moment. I'll give them a go and we'll see what happens.
Comment #3
markus_petrux commentedDon't worry, I started to work on it this afternoon, and I expect to post a patch for review soon.
Comment #4
markus_petrux commentedSorry, it took me a bit more time to finish what I started on saturday afternoon.
Could you please try this one?
Comment #5
markus_petrux commentedWell, we've been testing this at the office with several fields and it's been working nicely.
Committed to CVS. Thanks! :)
Comment #7
bshensky commentedIssue closed? A 2-week August vacation will do that. ;-)
FWIW, our tests match yours - the mods work nicely. Thanks SO much for bringing this feature to fruition!
Comment #8
markus_petrux commentedYou're welcome! :)
It's been a nice feature to add.