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.
AFAICT there is no way to replace the icon or theme it.
AFAICT there is no way to replace the icon or theme it.
Comments
Comment #1
john.oltman CreditAttribution: john.oltman commentedYou can use hook_node_api when op=view to replace the link with the markup you want. Or you can output a text link and use CSS.
a.forward-page {
display: block;
width: 32px;
height: 32px;
background: url('/path/to/myImage.png') bottom;
text-indent: -99999px;
}
Changing to feature request to make this more easily changed via a theme function.
Comment #2
joachim CreditAttribution: joachim commented> to replace the link with the markup you want
Isn't already a full HTML element by then?
At any rate, it was in the block that I wanted this, where there no means of alteration and the only theme call is to theme_image().
Comment #3
john.oltman CreditAttribution: john.oltman commentedIn D7, you can use hook_block_view_alter. In D6, I believe you are stuck with the CSS approach.
Comment #4
john.oltman CreditAttribution: john.oltman commentedComment #5
john.oltman CreditAttribution: john.oltman commentedA custom icon and better theme capability has been added to 7.x-2.x