Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In template.php
, line 164, inside of basic_preprocess_block
.
This line breaks block classes, which will have many negative side effects, including disabling of contextual links:
$vars['classes_array'] = array('block');
Block class is automatically added to classes_array
, so that line is not necessary at all.
Comments
Comment #1
caiobianchi CreditAttribution: caiobianchi commentedAgreed! Please make this a priority. That line isn't necessary and disables core functionality of the block module in Drupal. Commenting it out seems to make contextual links work again.
Comment #2
bisonbleu CreditAttribution: bisonbleu commentedAha, thanks for reporting this. Contextual links are back.
Comment #3
joelpittetOh this hasn't been fixed yet. So I fixed it and pushed to dev
Comment #4
joelpittetComment #7
caiobianchi CreditAttribution: caiobianchi commentedSomehow this issue made its way back into stable.