Module code for hook_form_alter problem
I have a select dropdown list from a taxonomy applied to multiple node types on my site. The problem is not all the terms are relevant to all the node types.
What I am attempting to accomplish is a small module which will detect and current node being editted and selectively remove irrelevant terms from the the select list.
However, when I do a print_r or dpr on $form within the hook_form_alter, the开发者_StackOverflow中文版 terms of the taxonomy are not exposed. So, I can't do and unset or other relevant action to remove the necessary term(s).
I hope that's clear enough.
I need help, please give me some assistance.
You need to fire your hook after taxonomy module which is as simple as changing weight in system table to be higher than taxonomy
精彩评论