默认的管理内容 View 显示:
the author of the node
和
the date of the last update
但不是
the person that did the last update.
是否可以为任何内容类型添加此信息(修改内容的登录用户)?
最佳答案
此方法要求为您想要应用此功能的内容类型启用节点修订。
启用article
内容类型的节点修订;转到管理/结构/类型/管理/文章
。在发布选项
下确保启用创建新版本
。
获取上次更新的人员
$revisions = node_revision_list($node);
$lastUpdatedAuthorUid = $revisions[0]['uid'];
$lastUpdatedAuthorName = $revisions[0]['name'];
关于德鲁帕尔 7 : add 'updated by ' to admin content,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27145912/