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

kbahey’s picture

Status: Active » Closed (fixed)

Look in the code of the module where it determines if the node is in favorite or not, and do the same in your block.