开发者

Failing to get hook_form_alter to work

I'm trying to 开发者_开发百科investigate how to add functionality to a webforms form (want to add a lookup button to populate the form). The issue is that I don't seem to be be able to get hook_form_alter to work as I would expect.

function myModule_form_alter(&$form, &$form_state, $form_id) {
     $form['test'] = array('#markup' => 'testint 123');
}

I know that this would effect ALL forms as is. I'm keeping it simple while I test that it's working correctly.

I have a webforms form and would expect the markup to appear on the page, but it's not.


Fresh boot this morning and it's now working. It may have been the cache...thanks

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜