hook_preprocess_rules_link() does not seem to be called for rules links attached to Comments EDIT : displayed as views fields since 2.0
I have custom code that overrides the title and adds custom classes. It still works for my rules links attached to Nodes EDIT : displayed via rules_link_render(), but not for those attached to Comments.
I did a dpm($vars) and it only prints out for links attached to Nodes.

Comments

Nicolas Bouteille’s picture

Category: Bug report » Support request

Actually template_process_rules_link() is not called either for rules links attached to Comments. Is that normal? Are they processed elsewhere?

Nicolas Bouteille’s picture

Category: Support request » Bug report
Priority: Normal » Major

Switching back to a bug because I noticed that rules links attached to Comments EDIT : displayed as views fields, are not themed at all. They are simple links with no wrappers and no classes related to rules-link...

Nicolas Bouteille’s picture

Maybe I should mention that I am displaying the links as Views fields.

Nicolas Bouteille’s picture

Title: hook_preprocess_rules_link() not called for rules links attached to Comments since 2.0 » Rules links attached to Comments are not processed
Nicolas Bouteille’s picture

Title: Rules links attached to Comments are not processed » Rules links displayed as Views fields are not processed

I just noticed that by complete hasard, my rules links attached to Nodes where displayed using rules_link_render() function and the ones attached to Comments where displayed as Views fields. So updating the issue accordingly. The problem is not with Comments but with Views.

Nicolas Bouteille’s picture

Issue summary: View changes