在我的网站上,我正在查看此节点的编辑页面:http://example.com/node/5290027/edit。它将标题显示为空白,当我执行var_dump
$node
时,标题为NULL。但是,在数据库中,表节点中有该节点的标题;
mysql> select * from node where nid = 5290027;
+---------+---------+---------+----------+----------------------+-----+--------+------------+------------+---------+---------+----------+--------+------+-----------+----------+
| nid | vid | type | language | title | uid | status | created | changed | comment | promote | moderate | sticky | tnid | translate | keywords |
+---------+---------+---------+----------+----------------------+-----+--------+------------+------------+---------+---------+----------+--------+------+-----------+----------+
| 5290027 | 5289971 | digital | en | Building Chris Craft | 0 | 1 | 1370006759 | 1370006759 | 0 | 1 | 0 | 0 | 0 | 0 | |
+---------+---------+---------+----------+----------------------+-----+--------+------------+------------+---------+---------+----------+--------+------+-----------+----------+
1 row in set (0.00 sec)
答案 0 :(得分:0)
如果您使用的标准节点编辑表单看起来像是您提供的示例网址,我可能会首先禁用javascript以确保在客户端没有清除它。
如果不是这种情况,我首先要查找与此相关的任何hook_form_alter或hook_form_FORM_ID_alters。快速搜索将在模块目录中搜索['title']或[“title”],这将返回在FAPI中更改的任何实例。