Unable to theme link after click

starkos - February 9, 2009 - 22:21
Project:Watcher
Version:6.x-1.0-beta3
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed
Description

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!

#1

solipsist - February 10, 2009 - 07:42

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.

#2

solipsist - February 14, 2009 - 16:24
Status:active» postponed
 
 

Drupal is a registered trademark of Dries Buytaert.