[imp] Problem with hook _prefs_hook_from_addr

Jan Schneider jan at horde.org
Thu Feb 14 16:01:19 UTC 2008


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/



More information about the imp mailing list