[#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 (56 days ago)
Due
Updated 04/23/2008 (19 days ago)
Assigned 04/02/2008 (40 days ago)
Resolved 04/23/2008 (19 days ago)
Attachments
Milestone
Patch

History
04/23/2008 Chuck Hagenbuch Comment #5
State ⇒ Not A Bug
Reply to this comment
No worries.
04/23/2008 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 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 Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Works perfectly here.
03/17/2008 liamr (at) umich (dot) edu Comment #1
Patch ⇒
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ _prefs_hook_fullname not working
Type ⇒ Bug
Priority ⇒ 1. Low
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.