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.
Menu在 Drupal 7 中,无论何时更改,我都需要进行一些处理。(保存/更新/删除) 我怎样才能得到它?有人可以告诉我hook应该触发哪个或地方吗?
Menu
hook
不确定,但我认为您可能想知道菜单链接何时更改,而不是整个菜单。但以防万一这里有两个钩子......
以下是菜单修改的钩子:
hook_menu_insert
hook_menu_update
hook_menu_delete
以下是菜单链接修改的钩子:
hook_menu_link_insert
hook_menu_link_update
hook_menu_link_delete