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

Edwin Culp eculp@encontacto.net
Fri, 13 Sep 2002 17:15:28 -0700


Quoting Edwin Culp <eculp@encontacto.net>:

 | Quoting Chuck Hagenbuch <chuck@horde.org>:
 | 
 |  | This is because I got lazy and didn't finish migrating IMP to the
 | conf.xml
 |  | file, which is why conf.php.dist hadn't been removed. I just finished
 | this
 |  | and committed it to CVS, so things should be clearer now.
 | 
 | Thanks, Chuck.  I was watching on cvs and it seems much clearer now.  I just
 | started a cvs update to clean my new version up.

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');
        }
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