[imp] Problem with hook _prefs_hook_from_addr
Andrea Soracchi
soracchi at netbuilder.it
Thu Feb 14 16:32:48 UTC 2008
Hi,
How can I check?
The function is called during the login.
Thanks
On Thu, 14 Feb 2008 17:01:19 +0100, Jan Schneider <jan at horde.org> wrote:
> Zitat von Andrea Soracchi <soracchi at netbuilder.it>:
>
>> 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!!!
>
> Even after logging in successfully to Horde?
>
> Jan.
>
> --
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
>
> --
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
--
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