开发者

Find a list of modules that 'altered' a specific form in Drupal

Is there a trick, addon or patch that allows me to find out what mo开发者_C百科dules altered a specfic form?

A list of all hook_form_alters is not too hard to achieve. But I want to list only those that actually changed my form.

Modules can alter a form trough a generic modulename_form_alter() and modulename_form_FORMID_alter() it would be nice if both are taken into consideration.


The drupal_prepare_form function calls all hook_form_alter functions. In this function, there is no storage for any modules that implement hook_form_alter. However, there is a container ($data) there that pulls all the alter functions then is applied with drupal_alter. Getting this data would require modifying this file (ref: line 543 in /includes/form.inc in Drupal 6.19).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜