V
V
Vlad1712016-03-28 22:39:38
Drupal
Vlad171, 2016-03-28 22:39:38

Where did the comment editing button go (Drupal7)?

I ran into a problem - the ability to edit my comments disappeared. The rights are set correctly. Is there anyone who faced a similar problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Pupkin, 2016-03-29
@sakrab

*.tpl files were picked?

V
Vlad171, 2016-03-29
@Vlad171

The comment output template is customized. The output of links for editing, deletion occurs here:

if($user->uid){
        echo '<span class="editdelete">';
        if(isset($content['links']['comment']['#links']['comment-edit']['href'])){
                  echo '<a href="/'.$content['links']['comment']['#links']['comment-edit']['href'].'">'.t('Edit').'</a>&nbsp;&nbsp;&nbsp;';
                    }
         if(accessUser_comment($user,$comment)){
                    if(isset($content['links']['comment']['#links']['comment-delete']['href'])){
                        echo '<a href="/'.$content['links']['comment']['#links']['comment-delete']['href'].'">'.t('Delete').'</a>&nbsp;&nbsp;&nbsp;';
                    }
                }
             if(isset($content['links']['comment']['#links']['comment-reply']['href'])){
                    echo '<a href="/'.$content['links']['comment']['#links']['comment-reply']['href'].'">'.t('Reply').'</a>&nbsp;&nbsp;&nbsp;';
                }
                echo '</span>';
            }

Only $content['links']['comment']['#links']['comment-edit'] no , only $content['links']['comment']['#links'][ 'quote']

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question