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.
Code in question:
function my_alter_comment_attribution(&$element, $node = NULL) {
$element['#attached']['js'][] = array('type' => 'setting', 'data' => array(
'myOrg' => array(
'defaultCommentAttribution' => '<div class="myorg-attribution-summary">' . t('<strong>Attribute this contribution:</strong> <strong>@name</strong> at organization <a href="#" class="organization">not applicable</a> for customer <a href="#" class="customer">not applicable</a>', array('@name' => empty($element['#entity']->name) ? $GLOBALS['user']->name : $element['#entity']->name)) . '</div>'
),
));
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedhttp://cgit.drupalcode.org/drupalorg/tree/drupalorg/drupalorg.module#n1673
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedTested on my side and it appears to be fixed.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedGot a confirmation that this is good to go.
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commented