I'm trying to "add to favorites" feature on a Block. The main problem is when the node is already a faved, it still apear "Add to Favorites" instead of "Delete this Favorite"
I'm trying to "add to favorites" feature on a Block. The main problem is when the node is already a faved, it still apear "Add to Favorites" instead of "Delete this Favorite"
Comments
Comment #1
kbahey commentedLook in the code of the module where it determines if the node is in favorite or not, and do the same in your block.