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.
The "Attachment links" help text in the "File attachments" fieldset appears on every node type regardless of whether attachment links are enabled for that type.
We should also check to make sure that the callback path is available only to nodes of attachment link-enabled node types.
Comments
Comment #1
Todd Nienkerk CreditAttribution: Todd Nienkerk commentedComment #2
Todd Nienkerk CreditAttribution: Todd Nienkerk commentedAdded check to make sure attachment links are enabled for that node type before displaying related help text or attempting to retrieve a file.