I'm attempting to use the image_title
module to replace a node's title by an uploaded image. I thought it was working, but I've since discovered that it was only showing for me, not for anyone else on the site. =(
In debugging, I inserted the following into the image_title_preprocess_page()
function:
$fh = fopen('/tmp/myfile', 'w');
fwrite($fh,date('r') . " starting page\n");
and I've found that this hook isn't getting called for anonymous users. I can't think of why that would happen. I also don't know much about the process by which hooks are run, though.
Perhaps page caching is causing the hook not to be called?
EDIT: If I just bypass the web server & call php index.php
directly, image_title_preprocess_page()
does get called, but then it does a SELECT image FROM {image_title_menu}
and it finds nothing relevant. I have to wonder why it's using the 'page' hook instead of the 'node' hook in the first place though. Maybe this module just plain doesn't work.
I'm using Drupal 6.22, and while I'm investigating this (and maybe after, too) I've got a github fork here: https://github.com/kenahoo/drupal-image_title .
Thanks.