[horde] Hook prefs_hook_from_addr no being call

jacques-beaudoin@cspi.qc.ca jacques-beaudoin at cspi.qc.ca
Thu Sep 28 13:41:16 PDT 2006


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 ?

-
Cordialement / Best regards

Jacques Beaudoin
Agent d'administration
Les services des technologies
de l'information et des communications
Commission scolaire de la Pointe de l'Île
Montréal, Québec, Canada

Courriel/Email: jacques-beaudoin at cspi.qc.ca







More information about the horde mailing list