6.0.0-beta1
7/10/25

[#6493] _prefs_hook_fullname not working
Summary _prefs_hook_fullname not working
Queue Horde Base
Queue Version HEAD
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester liamr (at) umich (dot) edu
Created 03/17/2008 (6324 days ago)
Due
Updated 04/24/2008 (6286 days ago)
Assigned 04/02/2008 (6308 days ago)
Resolved 04/24/2008 (6286 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/24/2008 01:19:50 AM Chuck Hagenbuch Comment #5
State ⇒ Not A Bug
Reply to this comment
No worries.
04/23/2008 10:23:37 PM liamr (at) umich (dot) edu Comment #4 Reply to this comment
setting  $_prefs['fullname']['hook'] to true  seems to have done it.



I'm  very sorry, guys - I guess I didn't read the comments at the top 
of prefs.php closely enough.
04/23/2008 09:58:34 PM Chuck Hagenbuch Comment #3
State ⇒ No Feedback
Reply to this comment
No feedback for now. If this is still happening, did you set 'hook' => 
true for the prefs in question?
04/02/2008 11:43:03 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Works perfectly here.
03/17/2008 09:40:57 PM liamr (at) umich (dot) edu Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ _prefs_hook_fullname not working
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
I've tried deleting both my fullname and identities preferences, and I 
can't get _prefs_hook_fullname() to invoke.  I added a call to 
Horde::logMessage(), and don't see anything in the horde log.



I was originally trying the LDAP backed one example (modified for our 
ldap server), but am currently trying..



if (!function_exists('_prefs_hook_fullname')) {

     function _prefs_hook_fullname($user = null)

     {

         $name = "Joe User";

         Horde::logMessage($name, __FILE__, __LINE__, LOG_DEBUG);

         return (empty($name) ? $user : $name);

     }

}



thinking that should set everyone's name to "Joe User" provided 
fullname isn't set for them yet.

Saved Queries