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.
我想在组合框中列出状态,以显示在左侧栏中的块中。根据状态的选择,我想过滤页面节点中的 HTML 代码。
我该怎么做?
hook_block
如何从那里着手很大程度上取决于您需要哪种类型的过滤。在任何情况下hook_nodeapi都会在各种与节点相关的场合调用,因此您可能希望实现它来进行实际过滤。
hook_nodeapi