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.
Hi,
Please add a class reference to the div you add as a suffix to the reference field. This why we can specifically style it!
From:
$form[$key]['#suffix'] = '<div class="node-reference">Add New: ' . implode(', ', $links) .'</div></div>';
To:
$form[$key]['#suffix'] = '<div>Add New: ' . implode(', ', $links) .'</div></div>';
Comments
Comment #1
lordg CreditAttribution: lordg commentedSorry, I meant the other way around with the From and To. :(