Disable links to username and date field in diff_diffs_show function

Created on 5 March 2021, almost 4 years ago
Updated 16 December 2024, 5 days ago

Hello,

One of my task requires me to disable the links generated by username and date fields here inside diff_diffs_show function under diff.pages.inc file.

  // Generate table header (date, username, log message).
  $old_header = t('!date by !username', array(
    '!date' => l(format_date($old_node->revision_timestamp), "node/$node->nid/revisions/$old_node->vid/view", array('absolute' => 1)),
    '!username' => theme('username', array('account' => $node_revisions[$old_vid])),
  ));
  $new_header = t('!date by !username', array(
    '!date' => l(format_date($new_node->revision_timestamp), "node/$node->nid/revisions/$new_node->vid/view", array('absolute' => 1)),
    '!username' => theme('username', array('account' => $node_revisions[$new_vid])),
  ));<code>

Can someone guide me how to disable the links here? Basically, I just want name and date fields in plain text here instead of links.(see attached picture for reference)

I know it's not right to change module code here directly, is there a way I can change it by writing a custom module?

Any help would be appreciated!

💬 Support request
Status

Closed: outdated

Version

3.4

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024