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.
On the link created on streams related to the flag module, the "'N people' liked this" link, the generated target url "/heartbeat/nojs/flagged/N" does not display the avatar. Instead it displays a link and the word "Array." The link is correct, but the display is inaccurate.
The following patch fixes this problem, but I think ultimately we would want more control over what gets displayed in this context.
NOTE: The patch does not work correctly...sorry...please ignore it.
Comment | File | Size | Author |
---|---|---|---|
#1 | heartbeat_plugins_flagging-7.x-1.0.patch | 1.73 KB | dalinian |
heartbeat-avatar-link-7.x-1.0.patch | 787 bytes | dalinian |
Comments
Comment #1
dalinian CreditAttribution: dalinian commentedOkay...here's a working patch that does not muck with the heartbeat.module. Instead, I added an additional theming function to the heartbeat_plugins.module specifically for flagging.
Comment #2
Stalski CreditAttribution: Stalski commentedAdded your code (with some changes, including moving the l function to the theme function).
Thx for the suggestion
Comment #3.0
(not verified) CreditAttribution: commentedToo quick to post a solution.