I'm having a bit of trouble with troubleshooting a module I am working. I am trying to modify a module to redirect traffic but even though its enabled it doesn't seem to do anything. I've had problems in the past with using hooks and i'm not sure what I'm doing wrong.
I am basically using the finder module and here's the code to redirect:
function test_finder_goto_alter(&$result, $finder) {
/* Redirect to a different page in the current directory that was requested */
drupal_goto("testpage");
}
I see the module in modules and enabled it but it still doesn't redirect the way I want it to. Do you have any suggestion on what I'm doing wrong? I don't think its specific to this module I think I might be doing something wrong in general.