[horde] Horde $_prefs['from_addr'] and subsequent hook format
Decombobulator
jonas at ausnetworking.com.au
Thu Feb 19 23:16:08 UTC 2009
Hi,
I got the solution already! Gotta love lists!
THE HOOK:
This is my hook in horde/config/hooks.php
<?php>
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]['@your.default.domain.com'];
return (empty($mail) ? '' : $mail);
}
return '';
}
}
PREFS.PHP
This is what your prefs should look like (found in horde/config/prefs.php)
$_prefs['from_addr'] = array(
'value' => '',
'locked' => true,
'shared' => true,
'type' => 'text',
'desc' => _("Your From: address:")
);
That's it. It just works.
--
View this message in context: http://www.nabble.com/Horde-%24_prefs-%27from_addr%27--and-subsequent-hook-format-tp22094728p22111736.html
Sent from the Horde - General mailing list archive at Nabble.com.
More information about the horde
mailing list