[imp] Problem with hook _prefs_hook_from_addr

Andrea Soracchi soracchi at netbuilder.it
Wed Feb 13 23:42:46 UTC 2008


Hi,

I have installed Horde 3.2 RC2 and Imp 4.2.

In horde/config/pref.php :

$_prefs['from_addr'] = array(
    'value' => '',
    'locked' => false,
    'shared' => true,
    'type' => 'text',
    'hook' => true,
    'desc' =>  _("Your From: address:")
);

and in hooks.php I have this simple function:

if (!function_exists('_prefs_hook_from_addr')) {
     function _prefs_hook_from_addr($user = null)
     {
        if (is_null($user)) {
                $user = Auth::getAuth();
        }
        return $user;
     }
 }

I have the same result: $user is empty!!!

The Horde's $conf[auth][driver] is composite (with imp and mimp auth).
 
Can you help me?

Thanks in advance 
 
-- 
NETBUILDER S.R.L.
Andrea Soracchi- System Engineer
Tel. 0521-247791
Fax. 0521-7431140 / 0521 - 1851253
www.netbuilder.it



More information about the imp mailing list