[horde] Hook prefs_hook_from_addr no being call
Jan Schneider
jan at horde.org
Thu Sep 28 14:37:56 PDT 2006
Zitat von jacques-beaudoin at cspi.qc.ca:
> Hi,
>
> I have a hook setup for from_addr
> but it looks like its not being call
>
> This is the hook (probably bad but I'm new to this)
>
> if (!function_exists('_prefs_hook_from_addr')) {
> function _prefs_hook_from_addr($user = null)
> {
> if (is_null($user)) {
> $user = Auth::getAuth();
> }
> if (!empty($user)) {
> $user = Auth::getAuth();
> $mail = $user[0]['@cspi.qc.ca'];
> return (empty($mail) ? '' : $mail);
> }
> return '';
> }
> }
>
>
> This my prefs setup for from_addr
>
> // user preferred email address for From: line
> // If you lock this preference, you must specify a value or a hook for it in
> // horde/config/hooks.php.
> $_prefs['from_addr'] = array(
> 'value' => '',
> 'locked' => true,
> 'shared' => true,
> 'type' => 'text',
> 'desc' => _("Your From: address:")
> );
>
> What im i missing ?
A fresh user that doesn't have an identity yet.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the horde
mailing list