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

wim leers’s picture

Assigned: Unassigned » wim leers
Status: Active » Fixed

I'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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.