Hook not getting called (image_title module) 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 &amp; 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.
Figured it out.  There was this crazy code in image_title_nodeapi():

function image_title_nodeapi(&amp;$node, $op, $teaser, $page) {
  if ( !user_access('create image titles') ||
       (variable_get('image_title_'. $node-&gt;type, 1) == 0) ) {    
     return; // do nothing ... 
   }


Which meant people could only see the images if they could also create images.  Not real bloody useful!  Fixed here:  https://github.com/kenahoo/drupal-image_title/commit/a4458676e7a6d1e00839a3d0e02a9d6c4f01fe2c

Update: on Paul's advice I created a fork in the Drupal Sandbox area: http://drupal.org/sandbox/kenahoo/1411716 .  I'm probably going to delete the github.com project now.