SV: [horde] Hook to display name

joho at poolia.se joho at poolia.se
Thu Jan 9 05:51:42 PST 2003


No, I'm afraid I am using the current release ;) This is in a
production environment, and they would hang me if I put CVS
stuff on this server.



-----Ursprungligt meddelande-----
Från: Hans Lellelid [mailto:hans at appliedsec.com]
Skickat: den 9 januari 2003 14:35
Till: joho at poolia.se
Kopia: horde at lists.horde.org
Ämne: RE: [horde] Hook to display name


Joaquim,

I'm new to Horde, but have had to deal with this issue myself.  What is
being displayed (you're using newest / CVS Horde, right?) is
Identity->getValue('fullname').  In the simplest/defalt scenario this is
just a preference ('fullname').  You can create a pref hook in hooks.php
to set this value (e.g. if your user accts are in the db):

Look in /horde/config/hooks.php to see examples of how this would/could
work.

Note that you do have to have a $_prefs defined for 'fullname'.  And
note that the pref _must_ have a 'value' key set to ''.  E.g.
	$_prefs['fullname'] = array(
		'hook' => true,
		'value' => '',
		'locked'=>true,
		'shared'=>true,
		'type'=>'implicit'
	);

Hans

-----Original Message-----

When a user logs in to Horde, the framework displays something
to the effect of "Welcome, <userid>". Is there a hook in the
current (or future) release where I can affect what is displayed
instead of <uid>?


-Joaquim


___
 .: +46 70 7745707
 .: Domo arigato gozaimashita
 .: At the end of a smile, there is a laugh and a 1/2

-- 
Horde mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: horde-unsubscribe at lists.horde.org


More information about the horde mailing list