Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Nicolas Bouteille CreditAttribution: Nicolas Bouteille commentedActually template_process_rules_link() is not called either for rules links
attached to Comments. Is that normal? Are they processed elsewhere?Comment #2
Nicolas Bouteille CreditAttribution: Nicolas Bouteille commentedSwitching back to a bug because I noticed that rules links
attached to CommentsEDIT : displayed as views fields, are not themed at all. They are simple links with no wrappers and no classes related to rules-link...Comment #3
Nicolas Bouteille CreditAttribution: Nicolas Bouteille commentedMaybe I should mention that I am displaying the links as Views fields.
Comment #4
Nicolas Bouteille CreditAttribution: Nicolas Bouteille commentedComment #5
Nicolas Bouteille CreditAttribution: Nicolas Bouteille commentedI 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.
Comment #6
Nicolas Bouteille CreditAttribution: Nicolas Bouteille commented