theme_watcher_node_toggle_watching_link provides a way to customize the link -- very nice! But once the user clicks on the link it goes back to its original presentation. After some poking around, I see this is hardcoded in watcher.js in toggleWatch(), using strings set in _watcher_node_watch_link().

I'm not sure about the best way to handle this...would it possible to create separate hooks theme_watcher_node_watch_link and theme_watcher_node_unwatch_link, and pass the output of those hooks to the Javascript, instead of the static strings?

Or, if the theme calls are too much, could you at least make those strings more easily customizable?

(FYI, I'm trying to fit this into a constrained space, and the default text is too much to fit)

Thanks!

Comments

solipsist’s picture

You can use the locale module to translate/alter the strings, pending I make it possible to customize them in Watcher's settings. It's been requested before and I'll look into getting it into 1.1.

solipsist’s picture

Status: Active » Postponed
khanz’s picture

Version: 6.x-1.0-beta3 » 6.x-1.x-dev
Status: Postponed » Active

Any update on this?