diff --git a/drupalorg_project/drupalorg_project.module b/drupalorg_project/drupalorg_project.module index 0a4e0c0..fe61bf2 100644 --- a/drupalorg_project/drupalorg_project.module +++ b/drupalorg_project/drupalorg_project.module @@ -620,35 +620,9 @@ function drupalorg_project_nodeapi(&$node, $op = 'view', $teaser = FALSE, $page $node->content['project_info']['#weight'] = 1; } } - elseif ($node->type === 'project_issue') { - // Get the number of revisions on this issue. - $count = db_result(db_query('SELECT COUNT(vid) FROM {node_revisions} WHERE nid = %d', $node->nid)); - - // Make a mock user object for theme_username() to avoid expensive call - // to user_load(). - $revision_author = new stdClass; - $revision_author->uid = $node->revision_uid; - $revision_author->name = db_result(db_query('SELECT name FROM {users} WHERE uid = %d', $revision_author->uid)); - $username = theme('username', $revision_author); - - // Format the date according to Bluecheese standards. - $date = format_date($node->changed, 'custom', 'F j, Y \a\t g:ia'); - - if ($count > 1) { - // Generate a link to the diff of this revision. - $previous_vid = db_result(db_query_range('SELECT vid FROM {node_revisions} WHERE nid = %d ORDER BY vid DESC', $node->nid, 1, 1)); - $diff_link = url("node/$node->nid/revisions/view/$node->vid/$previous_vid"); - $modified_text = t('Revision @count by !username on @date', array('@diff' => $diff_link, '@count' => $count, '!username' => $username, '@date' => $date)); - } - else { - // Just one revision, no link. - $modified_text = t('Revision 1 by !username on @date', array('!username' => $username, '@date' => $date)); - } - // Add header label and last updated information to node body. - $node->content['project_issue_header']['#value'] = '

' . t('Issue Summary') . '

'; - $node->content['project_issue_header']['#suffix'] = '

' . $modified_text . '

'; - } + // Add header label and last updated information to node body. + $node->content['project_issue_header']['#value'] = '

' . t('Issue Summary') . '

'; } // Add a breadcrumb to API Change nodes.