2011-11-04 69 views
2

我的模块中有一个hook_form_alter,但另一个模块workbench_access也有一个hook_form_alter,我需要在我的hook_form_alter之前调用它。我如何为我的hook_form_alter添加重量?如何在hook_form_alter上添加重量

回答

3

您只需将system表中模块的weight列设置为高于Workbench Access模块​​的列即可。

请参阅How to update a module's weight以了解执行此操作的不同方法。一旦你有了,清除Drupal的缓存,你的模块的钩子将在Workbench Access模块​​(最有可能是很多其他模块)之后被调用。