Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
虽然您可以轻松地在 vid=vocabularyId 的位置生成查询结果,但我想知道 api 中是否有这样做的方法,所以我的代码看起来不那么难看。我想知道 Drupal 的核心中是否已经实现了诸如词汇表_get_nodes(vid) 之类的东西。
不确定这是否正是您想要做的,但请查看以下三个 API 函数:
如果你搜索 api.drupal.org,还有其他几个与词汇相关的 API 函数,只需搜索以 taxonomy_ 开头的那些