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

Mike Cochrane mike@graftonhall.co.nz
Sat, 14 Sep 2002 12:33:16 +1200


> ----- 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 :-)

> and on line 78 in templates/login/login.inc
> 
>    <td align="left" class="light"><b>@<?php echo
> call_user_func($conf['hooks']['vinfo'],'vdomain') ?></b></td>
> 
> I also tried the call_user_func('_imp_hooks_vinfo') without success.
> 
> ed
> 
> --
> Horde developers mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe@lists.horde.org
> 
> ----- End message from eculp@encontacto.net -----