Commit 2524c67c authored by fmitchell's avatar fmitchell

Issue #1989348 by Elijah Lynn: Added author column on drafts and other revisions tables.

parent 76ba3deb
......@@ -4,7 +4,7 @@
#1988338 by Elijah Lynn: Added Always show drafts, previous revisions, history containers on Workflow tab/page (UX).
#1988356 by Elijah Lynn: Added Improve consistency by renaming revision and id to 'Revision ID'.
#1989310 by Elijah Lynn: Added Workflow page/tab - Rename Drafts to Working Drafts and Other Revisions to Archived Drafts - Less Confusing.
#1989348 by Elijah Lynn: Added author column on drafts and other revisions tables.
7.x-2.x
--------------
......
......@@ -22,6 +22,7 @@ function state_flow_events($node) {
t('Title'),
t('Status'),
t('Last Updated'),
t('Author'),
t('Actions'),
),
'rows' => array(),
......@@ -32,6 +33,7 @@ function state_flow_events($node) {
t('Title'),
t('Status'),
t('Last Updated'),
t('Author'),
t('Actions'),
),
'rows' => array(),
......@@ -46,6 +48,7 @@ function state_flow_events($node) {
$state_date_str = format_date($state->timestamp, 'short');
if (($state->status && !($state->state === 'published' && $vid == $node->vid)) || (!$state->status && $vid != $node->vid)) {
$state_node = node_load($node->nid, $vid);
$rev_author = user_load($state_node->revision_uid);
$state_state_flow = state_flow_load_state_machine($state_node);
$state_events = $state_state_flow->get_available_events();
$state_actions = array();
......@@ -66,6 +69,7 @@ function state_flow_events($node) {
l(check_plain($state_node->title), $path_view),
t($state->state),
$state_date_str,
theme('username', array('account' => $rev_author)),
$state_actions_str,
);
if ($state->status) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment