I don't have a custom module in my drupal 6.13 set up. I did however find it in the comment module, to be precise in the 'comment_link' function in the /drupal/modules/comment/comment.module file.
Personally, I would prefer to only change the 'Add new comment' link on forum topics. Is there any way I can determine whether it's a page, post, forum topic within the comment_link function in comment.module? Or would I need to add a parameter to this function or maybe provide a separate function to be called from the forum. So instead of 'comment_link', something like a 'forum_comment_link' function.
You will most likely regret it later when you upgrade and have to remember and re-apply all your changes.
It's easy to create your own module but it will mean learning a few steps. See the handbook page for how to do that (http://drupal.org/node/231276 if using Drupal 6).
For your specific problem, the code here worked for me.
Comments
Use hook_link_alter function in custom module
You can alter links from hook_link_alter function from custom module.
Not for me...
I don't have a custom module in my drupal 6.13 set up. I did however find it in the comment module, to be precise in the 'comment_link' function in the /drupal/modules/comment/comment.module file.
Personally, I would prefer to only change the 'Add new comment' link on forum topics. Is there any way I can determine whether it's a page, post, forum topic within the comment_link function in comment.module? Or would I need to add a parameter to this function or maybe provide a separate function to be called from the forum. So instead of 'comment_link', something like a 'forum_comment_link' function.
Don't hack core
You will most likely regret it later when you upgrade and have to remember and re-apply all your changes.
It's easy to create your own module but it will mean learning a few steps. See the handbook page for how to do that (http://drupal.org/node/231276 if using Drupal 6).
For your specific problem, the code here worked for me.