Adding a 'Check All' option for Taxonomy terms on Node edit

pcranston - June 11, 2009 - 20:33

I'm trying to add a 'Check All' option to a list of checkbox taxonomy terms, and cannot figure out how to do it. I've looked into Better Select and Taxonomy Super Select, but neither of them have this option. I've added the Checkall module, but this seems pretty strictly limited to controlling custom forms that you've created with the Forms API, not a core form for editing a node.

I've looked into creating custom modules like in the examples provided with Checkall, but they don't seem to work. What I can't tell from the Taxonomy documentation is the syntax for setting #checkall = TRUE for a particular set of checkboxes on a node.

Any help? This seems like it shouldn't be this hard to have this option, so I'm probably missing something straightforward?

bump! anybody out there with

pcranston - June 18, 2009 - 15:10

bump! anybody out there with some advice?

what appears to be going on

pcranston - June 18, 2009 - 20:00

what appears to be going on is that the code that generates the taxonomy options on the node form is processed before the hook_form_alter stuff I am trying to run. I added a custom module to edit the form with hook_form_alter, but it always runs after the content fields and taxonomy options and before the revision information, url path options, etc.

I've downloaded the Utils module to control the weight of the Taxonomy module, but it still always runs before the hook_form_alter. How can I put some code in to run hook_form_alter before the taxonomy options are generated?

_

WorldFallz - June 18, 2009 - 20:07

You'll probably have better luck with this type of dev question in IRC.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

 
 

Drupal is a registered trademark of Dries Buytaert.