drupal cck日期字段问题 [英] drupal cck date field question

查看:134
本文介绍了drupal cck日期字段问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用带有日期弹出窗口的文本字段将CCK日期字段添加到我的节点类型。粒度设置为包括小时和分钟。显示屏显示两个文本区,一个是日期,另一个是时间。

I've added CCK Date field to my node type using the Textfield with Date Popup wiget. The granularity is set to include Hours and Minutes. The display show two textareas, one for the date and the other for time.

如何将时间字段替换为下拉?我看不到我可以通过form_alter hook做到这一点,因为我的日期字段不会出现在$ form值中。

How do I override the time field to be a drop down? I can't see how I can do this via form_alter hook as my date field does not appear in the $form value.

谢谢
Steve

Thanks Steve

推荐答案

在数据库中,将系统表中的自定义模块的权重设置为高于CCK。如果不是,当您的hook_form_alter获取时,该字段不在表单上。

In your database, set your custom module's "weight" in the system table to be higher than that of CCK. If it is not, the field is not on the form when your hook_form_alter gets to it.

一旦你这样做,你不应该有任何问题自定义表单。

Once you do that, you shouldn't have any problem customizing the form.

这篇关于drupal cck日期字段问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆