I have a node form that the author should be able to edit, unless certain conditions are true. I would like to remove the "Edit" tab under those conditions, for the author. Power users should still be able to use the "Edit" tab.
<代码>hook_menu_alter(>)功能对我来说是没有工作的,因为它只是在菜单建成之后才被叫去做。
我更愿意(a) 这样做,而不在模块一级增加另一个截肢单元和(b) 而不是主题层面(安全),但有兴趣听取其他方式的意见。