| 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 |
State ⇒ Not A Bug
No worries.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.
State ⇒ No Feedback
No feedback for now. If this is still happening, did you set 'hook' => true for the prefs in question?State ⇒ Feedback
Works perfectly here.Patch ⇒
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ _prefs_hook_fullname not working
Type ⇒ Bug
Priority ⇒ 1. Low
State ⇒ Unconfirmed
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.