I am interested in overriding the 'Add new comment' text in the links array at the bottom of nodes. In a module I created a function:
mymodule_link_alter(&$node, &$links) {
$links['comment_add']['title'] = 'Replacement text';
}
Which worked, but the replacement text now appears on the page with taxonomy terms (not a link) as well as in the links array after $content. How can I prevent that from happening (some kinda conditional)?
Read more »