Closed (fixed)
Project:
Hierarchical Select
Version:
6.x-3.0
Component:
Code - Taxonomy
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
18 Jan 2010 at 04:18 UTC
Updated:
14 Mar 2010 at 09:10 UTC
I would like to be able to modify the terms that are displayed for a specific vocabulary in the node edit form, but due to the modifications made by HS, the terms are not available for me to modify in hook_form_alter. I can't use hook_db_rewrite_sql, because there are multiple queries, and the term passed to the query isn't available in the hook. Is there a way I can access those terms before the vocab lists are displayed in the node edit form? I need to do it at a user level and not a role level, which is why modules like Taxonomy Access or TAC Lite won't work.
Thanks.
Comments
Comment #1
wim leersI'd be happy to accept patches to make the HS Taxonomy queries better, to allow for this sort of functionality.
However, as far as I can see, I'm already doing things correctly. I call several of the Taxonomy API functions. And I've got a couple of replacements:
- _hs_taxonomy_hierarchical_select_get_tree(), which does use db_rewrite_sql()
- hs_taxonomy_term_count_nodes(), which also uses db_rewrite_sql()
Please let me know how I can help.