[horde] Re: Setting default identity name with a hook (very little 'hack')

Jan Schneider jan at horde.org
Fri Mar 4 12:41:35 PST 2005


Zitat von Áncor González Sosa <ancorgs at banot.net>:

> I followed the instructions on the wiki to setup default identity 'fullname'
> and 'from address' by means of hooks. Then I thought: why it doesn't work
> with the identity name? Looking at the source code I realized that just
> changing line 91 in lib/Horde/Identity.php this way
>
> .91c91,93
> .<             $identity['id'] = _("Default Identity");
> .---
> .>             if (!$identity['id']) {
> .>                 $identity['id'] = _("Default Identity");
> .>             }
>
> makes it possible to set the Identity name by means of hooks, like it can be
> done with fullname and from_addr.
>
> There is any good reason for restricting this posibility?

No. Committed, thanks.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the horde mailing list