"cut" and "paste" links doesn't appear on nodes full display

Created on 31 July 2017, almost 7 years ago
Updated 23 May 2023, about 1 year ago

If no other node link is to be displayed, "cut" and "paste" links miss a theme and don't display on nodes
My solution was to add the appropriate theme and classes like that:

function comment_mover_node_view($node, $view_mode) {
  if (empty($node->in_preview) && user_access('administer comments')) {
/****** add these two lines *****/
    $node->content['links']['node']['#theme'] = 'links__node__node';
    $node->content['links']['node']['#attributes'] = array('class' => array('links', 'inline'));
/**************************/
    $node->content['links']['node']['#links']['cut'] = array(
      'title' => t('cut'),
      'attributes' => array(
        'class' => array('use-ajax'),
      ),
🐛 Bug report
Status

Closed: won't fix

Version

1.2

Component

Code

Created by

🇫🇷France erwangel

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.

  • 🇮🇪Ireland lostcarpark

    I'm closing this issue as it seems unlikely it's going to get fixed for the D7 version. I've made a note to test for the D9/10 release.

    If anyone would like to fix for D7, feel free to reopen.

Production build 0.69.0 2024