[dev] IMP vinfo hook and imp/conf/hooks.php

Edwin Culp eculp@encontacto.net
Fri, 13 Sep 2002 21:45:49 -0700


Quoting Mike Cochrane <mike@graftonhall.co.nz>:

 | > ----- Message from eculp@encontacto.net ---------
 | > 
 | > I got the cvs and configured according to the instructions but no cigar.
 | > The only reference to this in imp still seems to be in
 | > Sessions.php
 | > /*
 | >         if (!empty($conf['hooks']['vinfo']) &&
 | >             function_exists($conf['hooks']['vinfo'])) {
 | >             $_SESSION['imp']['user'] =
 | > call_user_func($conf['hooks']['vinfo']);
 | >         }
 | > I thought the following might work but it didn't */
 | > 
 | >         if (!empty($conf['hooks']['vinfo']) &&
 | >             function_exists('_imp_hooks_vinfo')) {
 | >             $_SESSION['imp']['user'] = call_user_func('_imp_hooks_vinfo');
 | >         }
 | 
 | Does the function actually get called? or is one of the conditions failing?
 | I
 | remember when i first looked at this the function exsits check was failing
 | as
 | hooks.php hadn't been included yet.
 | 
 | Just a thought without any investigation behind it....
Mike,

That was true.  Somehow when I did my cvs update I got the configuration
file changes but not the new Sessions.php.  

Sorry, I will have to learn to wait a bit longer for the cvs changes to 
filter through.

Thanks,

ed