如何在 Drupal 表单中添加附加消息

发布于 2024-08-26 07:06:30 字数 62 浏览 18 评论 0原文

我想要自定义 Drupal 表单的附加说明,类似于 hook_help,但位于表单底部。有可用的函数或钩子吗?

I would like to additional instructions to a custom Drupal form, similar to hook_help, but at the bottom of the form. Is there a function or hook available for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

念三年u 2024-09-02 07:06:30

如果向表单添加没有类型的元素,其值将在页面上显示为 HTML。

请参阅此处

$form['contact_information'] = array(
  '#value' => t('You can leave us a message using the contact form below.'),
);

If you add an element to the form with no type, its' value will be displayed as HTML on the page.

See here

$form['contact_information'] = array(
  '#value' => t('You can leave us a message using the contact form below.'),
);
乱世争霸 2024-09-02 07:06:30

主题表单:http://www.lullabot.com/articles /修改-forms-drupal-5-and-6

你可以cck或其他模块...

theming forms: http://www.lullabot.com/articles/modifying-forms-drupal-5-and-6

you can cck or other modules...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文