德鲁帕尔 7 : add 'updated by ' to admin content

标签 drupal drupal-7 drupal-views

默认的管理内容 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/

相关文章:

drupal - 显示 YouTube 视频主页 Drupal

php - Drupal 7 : Custom 'Node Submit' Page through Views?

drupal - 如何快速主题化 View ?

css - drupal中图像的自定义类

mysql - 安装期间出现 Drupal AJAX HTTP 错误

drupal - 主题化 Drupal 对多个字段进行分组

Drupal View : Display recent nodes created by user on profile page

list - 如何使用 theme_item_list() 在 drupal7 中实现多级列表?

class - 在 drupal 8 的标题区域中添加自定义类

html - Drupal 照片不对齐